mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 19:42:42 +08:00
Fix conntrack return pointer
This commit is contained in:
parent
fecb796000
commit
87cd925144
|
@ -12,7 +12,7 @@ type Conn struct {
|
|||
element *list.Element[io.Closer]
|
||||
}
|
||||
|
||||
func NewConn(conn net.Conn) (*Conn, error) {
|
||||
func NewConn(conn net.Conn) (net.Conn, error) {
|
||||
connAccess.Lock()
|
||||
element := openConnection.PushBack(conn)
|
||||
connAccess.Unlock()
|
||||
|
|
|
@ -12,7 +12,7 @@ type PacketConn struct {
|
|||
element *list.Element[io.Closer]
|
||||
}
|
||||
|
||||
func NewPacketConn(conn net.PacketConn) (*PacketConn, error) {
|
||||
func NewPacketConn(conn net.PacketConn) (net.PacketConn, error) {
|
||||
connAccess.Lock()
|
||||
element := openConnection.PushBack(conn)
|
||||
connAccess.Unlock()
|
||||
|
|
Loading…
Reference in New Issue
Block a user