mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
在开发模式下重启时不重载临时IP白名单
This commit is contained in:
@@ -45,8 +45,10 @@ func init() {
|
||||
|
||||
// load
|
||||
go func() {
|
||||
_ = SharedIPWhiteList.Load(cacheFile)
|
||||
_ = os.Remove(cacheFile)
|
||||
if !Tea.IsTesting() {
|
||||
_ = SharedIPWhiteList.Load(cacheFile)
|
||||
_ = os.Remove(cacheFile)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user