diff options
author | vtak <vtak@gitlab.com> | 2022-03-14 11:42:41 +0300 |
---|---|---|
committer | Vishal Tak <vtak@gitlab.com> | 2022-03-17 13:44:24 +0300 |
commit | f417f2838296af229709421aecc04928bfba2638 (patch) | |
tree | 7d59ee978ebdd6c9b648c642b9788d8caf8f529a /test/acceptance | |
parent | f6ada25223c6f9b531a1e30da576ee042b361c2e (diff) |
update go-proxyproto and fix tests
Diffstat (limited to 'test/acceptance')
-rw-r--r-- | test/acceptance/helpers_test.go | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go index 1b514a85..8a81553d 100644 --- a/test/acceptance/helpers_test.go +++ b/test/acceptance/helpers_test.go @@ -123,13 +123,17 @@ func (l ListenSpec) proxyV2DialContext() dialContext { } header := &proxyproto.Header{ - Version: 2, - Command: proxyproto.PROXY, - TransportProtocol: proxyproto.TCPv4, - SourceAddress: net.ParseIP("10.1.1.1"), - SourcePort: 1000, - DestinationAddress: net.ParseIP("20.2.2.2"), - DestinationPort: 2000, + Version: 2, + Command: proxyproto.PROXY, + TransportProtocol: proxyproto.TCPv4, + SourceAddr: &net.TCPAddr{ + IP: net.ParseIP("10.1.1.1"), + Port: 1000, + }, + DestinationAddr: &net.TCPAddr{ + IP: net.ParseIP("20.2.2.2"), + Port: 2000, + }, } _, err = header.WriteTo(conn) |