mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
conf: use dns.Config instead of multiple variables
This commit is contained in:
1 parent
e0c07146dc
commit
3a8af82f87
4 files changed
+12
-23
No files matched your search
+2
-2
@@ -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...)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user