diff options
author | vtak <vtak@gitlab.com> | 2022-03-14 11:42:41 +0300 |
---|---|---|
committer | vtak <vtak@gitlab.com> | 2022-03-14 11:42:41 +0300 |
commit | e3bc8174e9eb11537d47c26bd6f6f7ff2e8cc57c (patch) | |
tree | b5dafe344227b937944889675188e6b69d7f9aea /test/acceptance | |
parent | fa999c136de21d230f1f7b2f92ce281825ceacb3 (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) |