Browse Source

Fix: missing assignment in 4931fea

Rod Hynes 10 years ago
parent
commit
ba905f65b3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      psiphon/upstreamproxy/proxy_socks4.go

+ 1 - 0
psiphon/upstreamproxy/proxy_socks4.go

@@ -107,6 +107,7 @@ func (s *socks4Proxy) Dial(network, addr string) (net.Conn, error) {
 		// try to put an invalid IP into DSTIP field and
 		// try to put an invalid IP into DSTIP field and
 		// append domain name terminated by '\x00' at the end of request
 		// append domain name terminated by '\x00' at the end of request
 		ip = net.IPv4(0, 0, 0, 1)
 		ip = net.IPv4(0, 0, 0, 1)
+		domainDest = hostStr
 	}
 	}
 	ip4 := ip.To4()
 	ip4 := ip.To4()
 	if ip4 == nil {
 	if ip4 == nil {