The zones are already setup by by the configuration code
@@ -103,7 +103,7 @@ func main() {
go configReader(dirName, Zones)
for _, host := range inter {
- go listenAndServe(host, &Zones)
+ go listenAndServe(host)
}
terminate := make(chan os.Signal)
@@ -172,7 +172,7 @@ func setupServerFunc(Zone *Zone) func(dns.ResponseWriter, *dns.Msg) {
-func listenAndServe(ip string, Zones *Zones) {
+func listenAndServe(ip string) {
prots := []string{"udp", "tcp"}
@@ -25,7 +25,7 @@ func (s *ServeSuite) SetUpSuite(c *C) {
setupPgeodnsZone(Zones)
configReadDir("dns", Zones)
- go listenAndServe(PORT, &Zones)
+ go listenAndServe(PORT)
time.Sleep(200 * time.Millisecond)