Skip to content

Commit

Permalink
Update firewall
Browse files Browse the repository at this point in the history
- Fix export rules
- Better country list
  • Loading branch information
QuentiumYT committed May 9, 2023
1 parent 9a9795e commit 8024daf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
22 changes: 11 additions & 11 deletions firewall/country.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
{
"CH": "India",
"brief": "IN "
"brief": "IN"
},
{
"CH": "Taiwan Province",
Expand Down Expand Up @@ -133,7 +133,7 @@
},
{
"CH": "Iran",
"brief": "I R"
"brief": "IR"
},
{
"CH": "Hong Kong, China",
Expand Down Expand Up @@ -232,7 +232,7 @@
"brief": "SC"
},
{
"CH": "Tunisia ",
"CH": "Tunisia",
"brief": "TN"
},
{
Expand Down Expand Up @@ -320,7 +320,7 @@
"brief": "GE"
},
{
"CH": "Angola ",
"CH": "Angola",
"brief": "AO"
},
{
Expand Down Expand Up @@ -428,7 +428,7 @@
"brief": "LB"
},
{
"CH": "Nepal ",
"CH": "Nepal",
"brief": "NP"
},
{
Expand Down Expand Up @@ -472,7 +472,7 @@
"brief": "LY"
},
{
"CH": "Kyrgyzstan ",
"CH": "Kyrgyzstan",
"brief": "KG"
},
{
Expand Down Expand Up @@ -516,7 +516,7 @@
"brief": "MN"
},
{
"CH": "Brunei ",
"CH": "Brunei",
"brief": "BN"
},
{
Expand Down Expand Up @@ -789,7 +789,7 @@
},
{
"CH": "Vanuatu",
"brief": "VU "
"brief": "VU"
},
{
"CH": "Martinique",
Expand Down Expand Up @@ -853,7 +853,7 @@
},
{
"CH": "Cook Islands",
"brief": "CK "
"brief": "CK"
},
{
"CH": "Federated States of Micronesia",
Expand Down Expand Up @@ -901,7 +901,7 @@
},
{
"CH": "British Indian Ocean Territory",
"brief": "IO "
"brief": "IO"
},
{
"CH": "Tokelau",
Expand Down Expand Up @@ -940,7 +940,7 @@
"brief": "LC"
},
{
"CH": "Saint Barthelemy ",
"CH": "Saint Barthelemy",
"brief": "BL"
}
]
5 changes: 4 additions & 1 deletion firewall/firewall_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,10 @@ def get_file(self,args):
filename = args.filename
mimetype = "application/octet-stream"
if not os.path.exists(filename): return abort(404)
return send_file(filename, mimetype=mimetype, as_attachment=True, attachment_filename=os.path.basename(filename), cache_timeout=0)
#return send_file(filename, mimetype=mimetype, as_attachment=True, attachment_filename=os.path.basename(filename), cache_timeout=0)
return send_file(filename, mimetype=mimetype, as_attachment=True,
download_name=os.path.basename(filename),
max_age=0)

# 规则导入:json
def import_rules(self, get):
Expand Down
14 changes: 7 additions & 7 deletions firewall/info.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"title": "SYS Firewall",
"name": "firewall",
"ps": "Provide GUI management function of system firewall (iptables/firewall/ufw)",
"versions": "2.7",
"checks": "/www/server/panel/plugin/firewall",
"author": "official",
"home": "https://www.aapanel.com"
"title": "SYS Firewall",
"name": "firewall",
"ps": "Provide GUI management function of system firewall (iptables/firewall/ufw)",
"versions": "2.8",
"checks": "/www/server/panel/plugin/firewall",
"author": "official",
"home": "https://www.aapanel.com"
}

0 comments on commit 8024daf

Please sign in to comment.