bug fix: CP-17

This commit is contained in:
Usman Nasir
2021-09-13 15:11:41 +05:00
parent 166844d87e
commit 0b0ecd4a51

View File

@@ -1476,7 +1476,7 @@ class FirewallManager:
protocol = data['protocol']
ports = data['ports']
portsPath = '/tmp/ports'
portsPath = '/home/cyberpanel/' + str(randint(1000, 9999))
if os.path.exists(portsPath):
os.remove(portsPath)