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
parentf6ada25223c6f9b531a1e30da576ee042b361c2e (diff)
update go-proxyproto and fix tests
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--test/acceptance/helpers_test.go18
3 files changed, 14 insertions, 10 deletions
diff --git a/go.mod b/go.mod
index 84785709..1e5fd598 100644
--- a/go.mod
+++ b/go.mod
@@ -17,7 +17,7 @@ require (
github.com/karlseguin/ccache/v2 v2.0.6
github.com/namsral/flag v1.7.4-pre
github.com/patrickmn/go-cache v2.1.0+incompatible
- github.com/pires/go-proxyproto v0.2.0
+ github.com/pires/go-proxyproto v0.6.2
github.com/prometheus/client_golang v1.11.0
github.com/rs/cors v1.7.0
github.com/sirupsen/logrus v1.8.1
diff --git a/go.sum b/go.sum
index 4eeb63dd..af5533e3 100644
--- a/go.sum
+++ b/go.sum
@@ -345,8 +345,8 @@ github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/9
github.com/philhofer/fwd v1.1.1/go.mod h1:gk3iGcWd9+svBvR0sR+KPcfE+RNWozjowpeBVG3ZVNU=
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
-github.com/pires/go-proxyproto v0.2.0 h1:WyYKlv9pkt77b+LjMvPfwrsAxviaGCFhG4KDIy1ofLY=
-github.com/pires/go-proxyproto v0.2.0/go.mod h1:Odh9VFOZJCf9G8cLW5o435Xf1J95Jw9Gw5rnCjcwzAY=
+github.com/pires/go-proxyproto v0.6.2 h1:KAZ7UteSOt6urjme6ZldyFm4wDe/z0ZUP0Yv0Dos0d8=
+github.com/pires/go-proxyproto v0.6.2/go.mod h1:Odh9VFOZJCf9G8cLW5o435Xf1J95Jw9Gw5rnCjcwzAY=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
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)