We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8662458 commit 87fb650Copy full SHA for 87fb650
install/lib/installer_base.lib.php
@@ -728,6 +728,11 @@ public function configure_firewall()
728
$tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
729
$udp_public_services = '53';
730
}
731
+ if(!stristr($tcp_public_services, $conf['apache']['vhost_port']) {
732
+ $tcp_public_services .= ' '.intval($conf['apache']['vhost_port']));
733
+ if($row["tcp_port"]) != '') $this->db->query("UPDATE firewall SET tcp_port = tcp_port + ',".intval($conf['apache']['vhost_port'])."' WHERE server_id = ".intval($conf['server_id']));
734
+ }
735
+
736
$content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content);
737
$content = str_replace("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content);
738
0 commit comments