mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: 1. support cache; 2. support custom records; #35
This commit is contained in:
1 parent
a2a67df771
commit
a226637bfb
6 files changed
+210
-58
No files matched your search
+2
-2
@@ -21,8 +21,8 @@ type Server struct {
|
||||
}
|
||||
|
||||
// NewServer returns a new dns server
|
||||
func NewServer(addr string, dialer proxy.Dialer, upServers ...string) (*Server, error) {
|
||||
c, err := NewClient(dialer, upServers...)
|
||||
func NewServer(addr string, dialer proxy.Dialer, upServers []string) (*Server, error) {
|
||||
c, err := NewClient(dialer, upServers)
|
||||
s := &Server{
|
||||
addr: addr,
|
||||
Client: c,
|
||||
|
||||
Reference in new issue
Block a user