mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-16 02:06:13 +01:00
Fixed a bug in applying a rule during delete
This commit is contained in:
@@ -81,11 +81,6 @@ class FirewallUtilities:
|
|||||||
|
|
||||||
command = 'sudo firewall-cmd --reload'
|
command = 'sudo firewall-cmd --reload'
|
||||||
|
|
||||||
ruleFamily = 'rule family="ipv6"'
|
|
||||||
sourceAddress = ''
|
|
||||||
|
|
||||||
command = "sudo firewall-cmd --permanent --zone=public --add-rich-rule='" + ruleFamily + " " + sourceAddress + " " + ruleProtocol + " " + rulePort + " " + "accept'"
|
|
||||||
|
|
||||||
if not FirewallUtilities.doComamnd(command):
|
if not FirewallUtilities.doComamnd(command):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user