mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-21 15:59:42 +08:00
修订代码,示例;添加geosite分流,域名现已支持full,sub,regex,geosite,match
This commit is contained in:
14
utils/utils.go
Normal file
14
utils/utils.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Package utils provides utilities that is used in all codes in verysimple
|
||||
package utils
|
||||
|
||||
import "flag"
|
||||
|
||||
func IsFlagPassed(name string) bool {
|
||||
found := false
|
||||
flag.Visit(func(f *flag.Flag) {
|
||||
if f.Name == name {
|
||||
found = true
|
||||
}
|
||||
})
|
||||
return found
|
||||
}
|
Reference in New Issue
Block a user