File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,9 @@ func Init() {
5050 }
5151 }
5252
53- if clientName == "ufw" {
54- _ = iptables .UnbindChain (iptables .FilterTab , iptables .ChainInput , iptables .Chain1PanelBasicAfter )
55- _ = iptables .UnbindChain (iptables .FilterTab , iptables .ChainInput , iptables .Chain1PanelBasicBefore )
56- _ = iptables .UnbindChain (iptables .FilterTab , iptables .ChainInput , iptables .Chain1PanelBasic )
57- _ = iptables .UnbindChain (iptables .FilterTab , iptables .ChainInput , iptables .Chain1PanelInput )
58- _ = iptables .UnbindChain (iptables .FilterTab , iptables .ChainOutput , iptables .Chain1PanelOutput )
53+ if clientName != "iptables" {
54+ return
5955 }
60-
6156 if err := iptables .LoadRulesFromFile (iptables .FilterTab , iptables .Chain1PanelBasicBefore , iptables .BasicBeforeFileName ); err != nil {
6257 global .LOG .Errorf ("load basic before rules from file failed, err: %v" , err )
6358 return
You can’t perform that action at this time.
0 commit comments