mirror of
https://github.com/SagerNet/sing-shadowsocks.git
synced 2025-04-05 04:47:41 +03:00
Improve udpnat
This commit is contained in:
parent
1a554a61f3
commit
b7d63b55c9
8 changed files with 24 additions and 9 deletions
3
none.go
3
none.go
|
@ -187,6 +187,9 @@ func (s *NoneService) NewConnection(ctx context.Context, conn net.Conn, metadata
|
|||
return s.handler.NewConnection(ctx, conn, metadata)
|
||||
}
|
||||
|
||||
func (s *NoneService) WriteIsThreadUnsafe() {
|
||||
}
|
||||
|
||||
func (s *NoneService) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata M.Metadata) error {
|
||||
destination, err := M.SocksaddrSerializer.ReadAddrPort(buffer)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue