1
0
Fork 0

Always send an address in the reply, set to zero

logger
Armon Dadgar 2014-01-24 14:20:55 -08:00
parent c9813fbde2
commit 4d1f2ce7ad
1 changed files with 3 additions and 2 deletions

View File

@ -260,8 +260,9 @@ func sendReply(w io.Writer, resp uint8, addr *AddrSpec) error {
var addrPort uint16 var addrPort uint16
switch { switch {
case addr == nil: case addr == nil:
addrType = 0 addrType = ipv4Address
addrBody = nil addrBody = []byte{0, 0, 0, 0}
addrPort = 0
case addr.FQDN != "": case addr.FQDN != "":
addrType = fqdnAddress addrType = fqdnAddress