Browse Source

Fix fqdn socks5 outbound connection

世界 3 years ago
parent
commit
b00b6b9e25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      outbound/socks.go

+ 1 - 1
outbound/socks.go

@@ -74,7 +74,7 @@ func (h *Socks) DialContext(ctx context.Context, network string, destination M.S
 	default:
 		return nil, E.Extend(N.ErrUnknownNetwork, network)
 	}
-	if destination.IsFqdn() {
+	if h.resolve && destination.IsFqdn() {
 		addrs, err := h.router.LookupDefault(ctx, destination.Fqdn)
 		if err != nil {
 			return nil, err