Improve udpnat

This commit is contained in:
世界 2022-05-30 12:19:38 +08:00
parent 1a554a61f3
commit b7d63b55c9
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
8 changed files with 24 additions and 9 deletions

View file

@ -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 {