diff options
| author | MDK <[email protected]> | 2023-09-26 14:12:04 +0800 |
|---|---|---|
| committer | MDK <[email protected]> | 2023-09-26 14:12:04 +0800 |
| commit | 4c63d78e4e42aece5e5eaa6e111e7d5fc20aabb8 (patch) | |
| tree | 4341188fd10890724936b4d129ce0a958daf79c9 /utils/other_utils.go | |
| parent | 4fcf28804c88ed090d96f737db7814cce44ac1fd (diff) | |
the project structure modified and new features added
Diffstat (limited to 'utils/other_utils.go')
| -rw-r--r-- | utils/other_utils.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/other_utils.go b/utils/other_utils.go index 9940a0c..af0a74b 100644 --- a/utils/other_utils.go +++ b/utils/other_utils.go @@ -6,8 +6,5 @@ import ( func IsValidIP(ip string) bool { res := net.ParseIP(ip) - if res == nil { - return false - } - return true + return res != nil } |
