code refactor for common package

This commit is contained in:
ginuerzh
2021-11-15 13:09:45 +08:00
parent ce3d62759a
commit 2c0ce35b0b
40 changed files with 61 additions and 61 deletions

View File

@ -3,7 +3,7 @@ package tcp
import (
"net"
"github.com/go-gost/gost/pkg/internal/utils"
util "github.com/go-gost/gost/pkg/common/util"
"github.com/go-gost/gost/pkg/listener"
"github.com/go-gost/gost/pkg/logger"
md "github.com/go-gost/gost/pkg/metadata"
@ -47,7 +47,7 @@ func (l *tcpListener) Init(md md.Metadata) (err error) {
}
if l.md.keepAlive {
l.Listener = &utils.TCPKeepAliveListener{
l.Listener = &util.TCPKeepAliveListener{
TCPListener: ln,
KeepAlivePeriod: l.md.keepAlivePeriod,
}