fix proxy protocol

This commit is contained in:
ginuerzh
2022-09-28 11:47:56 +08:00
parent cf20abf656
commit a1255e52d8
41 changed files with 524 additions and 180 deletions

View File

@ -3,7 +3,7 @@ package wrapper
import (
"net"
"github.com/go-gost/core/metrics"
xmetrics "github.com/go-gost/x/metrics"
)
type listener struct {
@ -12,7 +12,7 @@ type listener struct {
}
func WrapListener(service string, ln net.Listener) net.Listener {
if !metrics.IsEnabled() {
if !xmetrics.IsEnabled() {
return ln
}