From 1cdff5a2442eed7ea1fa8544ec063cf6939c3682 Mon Sep 17 00:00:00 2001 From: Antonio Mika Date: Wed, 8 Jan 2025 14:14:42 -0500 Subject: [PATCH] Fix deprecation for conn policy --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index c977ffd..1b486c6 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -118,7 +118,7 @@ func LoadProxyProtoConfig(l *proxyproto.Listener) { if viper.GetBool("proxy-protocol-use-timeout") { l.ReadHeaderTimeout = viper.GetDuration("proxy-protocol-timeout") - l.Policy = func(upstream net.Addr) (proxyproto.Policy, error) { + l.ConnPolicy = func(connPolicyOptions proxyproto.ConnPolicyOptions) (proxyproto.Policy, error) { switch viper.GetString("proxy-protocol-policy") { case "ignore": return proxyproto.IGNORE, nil