diff options
Diffstat (limited to 'tcpproxy_test.go')
-rw-r--r-- | tcpproxy_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpproxy_test.go b/tcpproxy_test.go index 5d75cc3..4849c68 100644 --- a/tcpproxy_test.go +++ b/tcpproxy_test.go @@ -320,7 +320,7 @@ func TestProxyPROXYOut(t *testing.T) { t.Fatal(err) } - want := fmt.Sprintf("PROXY TCP4 %s %d %s %d\r\nfoo", toFront.LocalAddr().(*net.TCPAddr).IP, toFront.LocalAddr().(*net.TCPAddr).Port, toFront.RemoteAddr().(*net.TCPAddr).IP, toFront.RemoteAddr().(*net.TCPAddr).Port) + want := fmt.Sprintf("PROXY TCP4 %s %s %d %d\r\nfoo", toFront.LocalAddr().(*net.TCPAddr).IP, toFront.RemoteAddr().(*net.TCPAddr).IP, toFront.LocalAddr().(*net.TCPAddr).Port, toFront.RemoteAddr().(*net.TCPAddr).Port) if string(bs) != want { t.Fatalf("got %q; want %q", bs, want) } |