mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
试图修复udp close无效的问题,可能导致 too many opened sockets.
This commit is contained in:
@@ -95,3 +95,10 @@ func CanLogDebug(msg string) *zapcore.CheckedEntry {
|
||||
return ZapLogger.Check(zap.DebugLevel, msg)
|
||||
|
||||
}
|
||||
func CanLogFatal(msg string) *zapcore.CheckedEntry {
|
||||
if LogLevel > Log_fatal {
|
||||
return nil
|
||||
}
|
||||
return ZapLogger.Check(zap.FatalLevel, msg)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user