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
diff options
context:
space:
mode:
authorvtak <vtak@gitlab.com>2022-03-14 11:42:41 +0300
committerVishal Tak <vtak@gitlab.com>2022-03-17 13:44:24 +0300
commitf417f2838296af229709421aecc04928bfba2638 (patch)
tree7d59ee978ebdd6c9b648c642b9788d8caf8f529a /test/acceptance/helpers_test.go
parentf6ada25223c6f9b531a1e30da576ee042b361c2e (diff)
update go-proxyproto and fix tests
Diffstat (limited to 'test/acceptance/helpers_test.go')
-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)