Add back UoT support

This commit is contained in:
世界 committed 2022-08-11 10:36:28 +08:00
1 parent cf80073f27
commit 517a89fa9c
7 files changed
+119 -11

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func (d *ResolveDialer) DialContext(ctx context.Context, network string, destina
}
func (d *ResolveDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error) {
if !destination.IsFqdn() {
if !destination.IsFqdn() || destination.Fqdn == "" {
return d.dialer.ListenPacket(ctx, destination)
}
ctx, metadata := adapter.AppendContext(ctx)