forwarder: add the ability to specify local ip. #48

This commit is contained in:
nadoo committed 2018-08-15 00:54:17 +08:00
1 parent 205b4efac7
commit 39ccbc5adf
7 files changed
+44 -28

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ func (c *Client) exchange(qname string, reqBytes []byte, preferTCP bool) (server
// if we are resolving the dialer's domain, then use Direct to avoid denpency loop
if strings.Contains(dialer.Addr(), qname) {
dialer = proxy.Direct
dialer = proxy.Default
}
// If client uses udp and no forwarders specified, use udp