mirror of
https://github.com/SagerNet/sing-mux.git
synced 2025-04-03 03:47:40 +03:00
Update interface usage
This commit is contained in:
parent
7befbadbf3
commit
759a1886a4
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue