Code cleanup in and around connector (#427)

This commit is contained in:
Geoff Bourne
2025-07-05 21:30:23 -05:00
committed by GitHub
parent 05c57c3b85
commit b3e88db48c
6 changed files with 148 additions and 122 deletions
+3 -1
View File
@@ -61,7 +61,9 @@ func TestTrustedProxyNetworkPolicy(t *testing.T) {
policy := c.createProxyProtoPolicy()
upstreamAddr := &net.TCPAddr{IP: net.ParseIP(test.upstreamIP)}
policyResult, _ := policy(upstreamAddr)
policyResult, _ := policy(proxyproto.ConnPolicyOptions{
Upstream: upstreamAddr,
})
assert.Equal(t, test.expectedPolicy, policyResult, "Unexpected policy result for %s", test.name)
})
}