Update interface usage

This commit is contained in:
世界 2023-09-08 11:26:17 +08:00
parent 7befbadbf3
commit 759a1886a4
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -13,8 +13,6 @@ import (
"github.com/sagernet/sing/common/rw"
)
var _ N.HandshakeConn = (*serverConn)(nil)
type serverConn struct {
N.ExtendedConn
responseWritten bool
@ -77,11 +75,6 @@ func (c *serverConn) Upstream() any {
return c.ExtendedConn
}
var (
_ N.HandshakeConn = (*serverPacketConn)(nil)
_ N.PacketConn = (*serverPacketConn)(nil)
)
type serverPacketConn struct {
N.ExtendedConn
access sync.Mutex
@ -183,11 +176,6 @@ func (c *serverPacketConn) FrontHeadroom() int {
return 2
}
var (
_ N.HandshakeConn = (*serverPacketAddrConn)(nil)
_ N.PacketConn = (*serverPacketAddrConn)(nil)
)
type serverPacketAddrConn struct {
N.ExtendedConn
access sync.Mutex