This commit is contained in:
insanity@loafle.com 2017-08-09 12:34:08 +09:00
parent b0364107df
commit c87b466709

View File

@ -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()
} }