mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-08-31 13:51:29 +00:00
tailscale: Fix inbound UDP packet connection
This commit is contained in:
parent
2ba896c5ac
commit
9cd60c28c0
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ func (t *Endpoint) registerNetstackHandlers() {
|
|||
ctx := log.ContextWithNewID(t.ctx)
|
||||
source := M.SocksaddrFrom(src.Addr(), src.Port())
|
||||
destination := M.SocksaddrFrom(dst.Addr(), dst.Port())
|
||||
packetConn := bufio.NewPacketConn(conn)
|
||||
packetConn := bufio.NewUnbindPacketConnWithAddr(conn, destination)
|
||||
t.NewPacketConnectionEx(ctx, packetConn, source, destination, nil)
|
||||
}, true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue