dhcp fix
This commit is contained in:
parent
b0364107df
commit
c87b466709
@ -164,7 +164,7 @@ func recvDHCPOffer(zone *types.DiscoveryZone) {
|
|||||||
ipStr = byteToIpString(r.Next(4))
|
ipStr = byteToIpString(r.Next(4))
|
||||||
dns = append(dns, ipStr)
|
dns = append(dns, ipStr)
|
||||||
}
|
}
|
||||||
log.Infof("DNS", dns)
|
log.Infof("DNS: %s", dns)
|
||||||
}
|
}
|
||||||
|
|
||||||
if v == OPT_CODE_SERVER_IDENTIFIER && r.Next(1)[0] == 4 {
|
if v == OPT_CODE_SERVER_IDENTIFIER && r.Next(1)[0] == 4 {
|
||||||
@ -172,6 +172,7 @@ func recvDHCPOffer(zone *types.DiscoveryZone) {
|
|||||||
log.Infof("DHCP SERVER: %s", ipStr)
|
log.Infof("DHCP SERVER: %s", ipStr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Flush()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user