mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +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'
|
||||
|
||||
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):
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user