Update proxy.go
This commit is contained in:
parent
0f60ef3ecb
commit
8ed42b967d
@ -312,11 +312,11 @@ func HandleUserTCPConnection(pxy Proxy, userConn net.Conn, serverCfg config.Serv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsTheTypeToLog(LogDurationTypes string, name string) bool {
|
func IsTheTypeToLog(logDurationTypes string, name string) bool {
|
||||||
if strings.Contains(LogDurationTypes, "all") {
|
if strings.Contains(logDurationTypes, "all") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
thestrlist := strings.Split(LogDurationTypes, ",")
|
thestrlist := strings.Split(logDurationTypes, ",")
|
||||||
for i := 0; i < len(thestrlist); i++ {
|
for i := 0; i < len(thestrlist); i++ {
|
||||||
if strings.Contains(name, thestrlist[i]) {
|
if strings.Contains(name, thestrlist[i]) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user