Skip to content

Commit

Permalink
Update utils.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder authored Sep 19, 2023
1 parent 7db7843 commit edd7155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loxinet/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func IsIPHostAddr(ipString string) bool {
for _, addr := range addr {
if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
// check if IPv4 or IPv6 is not nil
if ipnet.IP.To4() != nil || ipnet.IP.To16 != nil {
if ipnet.IP.To4() != nil || ipnet.IP.To16() != nil {
if ipnet.IP.String() == ipString {
return true
}
Expand Down

0 comments on commit edd7155

Please sign in to comment.