Skip to content
Snippets Groups Projects
Commit 87fb6509 authored by tbrehm's avatar tbrehm
Browse files

Add ispconfig port to firewall if port != 8080

parent 86624584
No related branches found
No related tags found
No related merge requests found
...@@ -728,6 +728,11 @@ class installer_base { ...@@ -728,6 +728,11 @@ class installer_base {
$tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000'; $tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
$udp_public_services = '53'; $udp_public_services = '53';
} }
if(!stristr($tcp_public_services, $conf['apache']['vhost_port']) {
$tcp_public_services .= ' '.intval($conf['apache']['vhost_port']));
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']));
}
$content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content); $content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content);
$content = str_replace("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content); $content = str_replace("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment