Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvtak <vtak@gitlab.com>2022-03-14 11:42:41 +0300
committervtak <vtak@gitlab.com>2022-03-14 11:42:41 +0300
commite3bc8174e9eb11537d47c26bd6f6f7ff2e8cc57c (patch)
treeb5dafe344227b937944889675188e6b69d7f9aea /test
parentfa999c136de21d230f1f7b2f92ce281825ceacb3 (diff)
update go-proxyproto and fix tests
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/helpers_test.go18
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)