conf: use dns.Config instead of multiple variables

This commit is contained in:
nadoo committed 2018-08-12 22:07:19 +08:00
1 parent e0c07146dc
commit 3a8af82f87
4 files changed
+12 -23

No files matched your search

+2 -2
View File
@@ -206,8 +206,8 @@ func (c *Client) exchangeUDP(rc net.Conn, reqBytes []byte) ([]byte, error) {
return reqBytes[:2+n], nil
}
// SetServer sets a upstream dns server for the given domain
func (c *Client) SetServer(domain string, servers ...string) {
// SetServers sets upstream dns servers for the given domain
func (c *Client) SetServers(domain string, servers ...string) {
c.upServerMap[domain] = append(c.upServerMap[domain], servers...)
}