Skip to content

Commit d8cba67

Browse files
authored
Update add_firewall_ipset.php (hestiacp#3390)
1 parent 87a4a74 commit d8cba67

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

web/templates/pages/add_firewall_ipset.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</label>
3535
<div class="u-pos-relative">
3636
<select class="form-select" tabindex="-1" id="datasource_list" onchange="this.nextElementSibling.value=this.value">
37-
<option value="">clear</option>
37+
<option value=""><?= _("Clear") ?></option>
3838
</select>
3939
<input type="text" class="form-control list-editor" name="v_datasource" id="v_datasource" maxlength="255" value="<?= htmlentities(trim($v_datasource, "'")) ?>">
4040
</div>
@@ -62,25 +62,25 @@
6262
<script>
6363
var country_iplists = [
6464
<?php
65-
$country = array('ca' => 'Canada', 'cn' => 'China', 'fr' => 'French', 'de' => 'Germany', 'in' => 'India', 'nl' => 'Netherlands', 'ro' => 'Romania', 'ru' => 'Russia', 'es' => 'Spain', 'ch' => 'Switzerland', 'tr' => 'Turkey', 'ua' => 'Ukraine', 'gb' => 'United Kingdom', 'us' => 'United States');
66-
foreach($country as $iso =>$name){
67-
echo '{name: "[IPv4] Country - '.$name.'", source:"https://raw.githubusercontent.com/ipverse/rir-ip/master/country/'.$iso.'/ipv4-aggregated.txt"},'."\n";
65+
$country = array('br' => 'Brazil', 'ca' => 'Canada', 'cn' => 'China', 'fr' => 'French', 'de' => 'Germany', 'in' => 'India', 'id' => 'Indonesia', 'nl' => 'Netherlands', 'ro' => 'Romania', 'ru' => 'Russia', 'es' => 'Spain', 'ch' => 'Switzerland', 'tr' => 'Turkey', 'ua' => 'Ukraine', 'gb' => 'United Kingdom', 'us' => 'United States');
66+
foreach($country as $iso => $name){
67+
echo '{name: "[IPv4] ' . _("Country") . ' - ' . $name . '", source: "https://raw.githubusercontent.com/ipverse/rir-ip/master/country/' . $iso . '/ipv4-aggregated.txt"},' . "\n";
6868
}
6969
?>
7070
// Define IPv6 country lists
7171
/*
7272
<?php
73-
foreach($country as $iso =>$name){
74-
echo '{name: "[IPv6] Country - '.$name.'", source:"https://raw.githubusercontent.com/ipverse/rir-ip/master/country/'.$iso.'/ipv6-aggregated.txt"},'."\n";
73+
foreach($country as $iso => $name){
74+
echo '{name: "[IPv6] ' . _("Country") . ' - ' . $name . '", source: "https://raw.githubusercontent.com/ipverse/rir-ip/master/country/' . $iso . '/ipv6-aggregated.txt"},' . "\n";
7575
}
7676
?>
7777
*/
7878
];
7979

8080
var blacklist_iplists = [
81-
{ name: "[IPv4] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.sh" },
81+
{name: "[IPv4] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.sh"},
8282
/*
83-
{name: "[IPv6] Block Malicious IPs", source:"script:/usr/local/hestia/install/common/firewall/ipset/blacklist.ipv6.sh"},
83+
{name: "[IPv6] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.ipv6.sh"},
8484
*/
8585
];
8686

0 commit comments

Comments
 (0)