mirror of
https://github.com/SagerNet/sing-shadowsocks.git
synced 2025-04-04 04:17:39 +03:00
Improve udpnat
This commit is contained in:
parent
1a554a61f3
commit
b7d63b55c9
8 changed files with 24 additions and 9 deletions
|
@ -189,6 +189,9 @@ func (c *serverConn) Upstream() any {
|
|||
return c.Conn
|
||||
}
|
||||
|
||||
func (s *Service) WriteIsThreadUnsafe() {
|
||||
}
|
||||
|
||||
func (s *Service) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, metadata M.Metadata) error {
|
||||
err := s.newPacket(ctx, conn, buffer, metadata)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue