Always send an address in the reply, set to zero
parent
c9813fbde2
commit
4d1f2ce7ad
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue