mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-03 22:06:37 +08:00
优化代码
This commit is contained in:
@@ -27,6 +27,8 @@ func NewFirewalld() *Firewalld {
|
||||
err := cmd.Run()
|
||||
if err == nil {
|
||||
firewalld.exe = path
|
||||
// TODO check firewalld status with 'firewall-cmd --state' (running or not running),
|
||||
// but we should recover the state when firewalld state changes, maybe check it every minutes
|
||||
firewalld.isReady = true
|
||||
firewalld.init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user