Browse Source

Fix TestXrayConfig in xray_test.go

RPRX 1 year ago
parent
commit
685e66e96b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      infra/conf/xray_test.go

+ 2 - 0
infra/conf/xray_test.go

@@ -236,6 +236,7 @@ func TestXrayConfig(t *testing.T) {
 									{
 									{
 										ProtocolName: "websocket",
 										ProtocolName: "websocket",
 										Settings: serial.ToTypedMessage(&websocket.Config{
 										Settings: serial.ToTypedMessage(&websocket.Config{
+											Host: "example.domain",
 											Header: map[string]string{
 											Header: map[string]string{
 												"host": "example.domain",
 												"host": "example.domain",
 											},
 											},
@@ -288,6 +289,7 @@ func TestXrayConfig(t *testing.T) {
 									{
 									{
 										ProtocolName: "websocket",
 										ProtocolName: "websocket",
 										Settings: serial.ToTypedMessage(&websocket.Config{
 										Settings: serial.ToTypedMessage(&websocket.Config{
+											Host: "example.domain",
 											Header: map[string]string{
 											Header: map[string]string{
 												"host": "example.domain",
 												"host": "example.domain",
 											},
 											},