mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-30 01:37:04 +08:00
执行一般命令时不运行init()中内容
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
|
||||
// check nft status, if being enabled we load it automatically
|
||||
func init() {
|
||||
if teaconst.IsDaemon {
|
||||
if !teaconst.IsMain {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user