mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
fea: config: add tests
This commit is contained in:
@@ -238,7 +238,13 @@ func (chains IpChains) Pop(obj IpChain) IpChains {
|
||||
return news[:index]
|
||||
}
|
||||
|
||||
var __iptablesInit__ = false
|
||||
|
||||
func IpInit() {
|
||||
if __iptablesInit__ {
|
||||
return
|
||||
}
|
||||
__iptablesInit__ = true
|
||||
if err := iptables.FirewalldInit(); err != nil {
|
||||
libol.Error("IpInit %s", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user