diff --git a/proxy/freedom/freedom_test.go b/proxy/freedom/freedom_test.go index a97fed789..1ccdcbe6a 100644 --- a/proxy/freedom/freedom_test.go +++ b/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()