summaryrefslogtreecommitdiff
path: root/utils/other_utils.go
diff options
context:
space:
mode:
authorMDK <[email protected]>2023-09-26 14:12:04 +0800
committerMDK <[email protected]>2023-09-26 14:12:04 +0800
commit4c63d78e4e42aece5e5eaa6e111e7d5fc20aabb8 (patch)
tree4341188fd10890724936b4d129ce0a958daf79c9 /utils/other_utils.go
parent4fcf28804c88ed090d96f737db7814cce44ac1fd (diff)
the project structure modified and new features added
Diffstat (limited to 'utils/other_utils.go')
-rw-r--r--utils/other_utils.go5
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
}