mirror of
https://github.com/SagerNet/sing-mux.git
synced 2025-04-04 20:37:44 +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"
|
"github.com/sagernet/sing/common/rw"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ N.HandshakeConn = (*serverConn)(nil)
|
|
||||||
|
|
||||||
type serverConn struct {
|
type serverConn struct {
|
||||||
N.ExtendedConn
|
N.ExtendedConn
|
||||||
responseWritten bool
|
responseWritten bool
|
||||||
|
@ -77,11 +75,6 @@ func (c *serverConn) Upstream() any {
|
||||||
return c.ExtendedConn
|
return c.ExtendedConn
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
|
||||||
_ N.HandshakeConn = (*serverPacketConn)(nil)
|
|
||||||
_ N.PacketConn = (*serverPacketConn)(nil)
|
|
||||||
)
|
|
||||||
|
|
||||||
type serverPacketConn struct {
|
type serverPacketConn struct {
|
||||||
N.ExtendedConn
|
N.ExtendedConn
|
||||||
access sync.Mutex
|
access sync.Mutex
|
||||||
|
@ -183,11 +176,6 @@ func (c *serverPacketConn) FrontHeadroom() int {
|
||||||
return 2
|
return 2
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
|
||||||
_ N.HandshakeConn = (*serverPacketAddrConn)(nil)
|
|
||||||
_ N.PacketConn = (*serverPacketAddrConn)(nil)
|
|
||||||
)
|
|
||||||
|
|
||||||
type serverPacketAddrConn struct {
|
type serverPacketAddrConn struct {
|
||||||
N.ExtendedConn
|
N.ExtendedConn
|
||||||
access sync.Mutex
|
access sync.Mutex
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue