Explorar o código

fix test break

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
d025b8d48f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      proxy/freedom/freedom_test.go

+ 1 - 1
proxy/freedom/freedom_test.go

@@ -51,7 +51,7 @@ func TestSinglePacket(t *testing.T) {
 	data2Send := "Data to be sent to remote"
 	payload := alloc.NewLocalBuffer(2048).Clear().Append([]byte(data2Send))
 
-	go freedom.Dispatch(v2net.TCPDestination(v2net.LocalHostIP, port), payload, traffic)
+	go freedom.Dispatch(v2net.TCPDestination(v2net.LocalHostIP, tcpServer.Port), payload, traffic)
 	traffic.InboundInput().Close()
 
 	respPayload, err := traffic.InboundOutput().Read()