Skip to content

Commit 948a842

Browse files
committed
Open mysql port in firewall by default.
1 parent 671a41a commit 948a842

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ public function configure_firewall()
714714
$tcp_public_services = trim(str_replace(',',' ',$row["tcp_port"]));
715715
$udp_public_services = trim(str_replace(',',' ',$row["udp_port"]));
716716
} else {
717-
$tcp_public_services = '21 22 25 53 80 110 443 8080 10000';
717+
$tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
718718
$udp_public_services = '53';
719719
}
720720
$content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content);

interface/web/admin/form/firewall.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
'regex' => '/^[\s0-9\,]{0,255}$/',
8080
'errmsg'=> 'tcp_ports_error_regex'),
8181
),
82-
'default' => '20,21,22,25,53,80,110,443,8080,10000',
82+
'default' => '20,21,22,25,53,80,110,443,3306,8080,10000',
8383
'value' => '',
8484
'width' => '30',
8585
'maxlength' => '255'
@@ -91,7 +91,7 @@
9191
'regex' => '/^[\s0-9\,]{0,255}$/',
9292
'errmsg'=> 'tcp_ports_error_regex'),
9393
),
94-
'default' => '53',
94+
'default' => '53,3306',
9595
'value' => '',
9696
'width' => '30',
9797
'maxlength' => '255'

0 commit comments

Comments
 (0)