Move function to utilities source file.

This commit is contained in:
GRMrGecko 2025-01-08 12:30:56 -06:00
parent d2fa2a2202
commit 88f8e88805
2 changed files with 10 additions and 0 deletions

BIN
.listener.go.kate-swp Normal file

Binary file not shown.

View File

@ -18,3 +18,13 @@ func generateRandomMAC() net.HardwareAddr {
return mac
}
// Check if IP address is all zero.
func isZeroAddr(ip net.IP) bool {
for _, b := range ip {
if b != 0x0 {
return false
}
}
return true
}