mirror of
https://github.com/miekg/dns.git
synced 2025-10-11 18:01:02 +02:00
some more fixes
This commit is contained in:
parent
9582fd005a
commit
beb14241fc
@ -13,6 +13,7 @@ func handleXfrOut(d *dns.Conn, i *dns.Msg) os.Error {
|
||||
fmt.Printf("Matchies current zone\n")
|
||||
if !Zone.correct {
|
||||
fmt.Printf("Zone was not deemed correct\n")
|
||||
d.WriteMsg(i)
|
||||
return nil
|
||||
} else {
|
||||
fmt.Printf("Zone was correct\n")
|
||||
@ -31,6 +32,7 @@ func handleXfrOut(d *dns.Conn, i *dns.Msg) os.Error {
|
||||
close(m)
|
||||
} else {
|
||||
fmt.Printf("No matching zone found\n")
|
||||
d.WriteMsg(i)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
@ -37,7 +37,7 @@ func handle(d *dns.Conn, i *dns.Msg) {
|
||||
handleXfrOut(d, i)
|
||||
if Zone.name != "" {
|
||||
// We have transfered a zone and can check it. For now assume ok.
|
||||
Zone.correct = true
|
||||
Zone.correct = false
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user