tbrehm
2008-12-20 87fb65097c079ef546b8df04f99703fdac963f00
Add ispconfig port to firewall if port != 8080
1 files modified
5 ■■■■■ changed files
install/lib/installer_base.lib.php 5 ●●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -728,6 +728,11 @@
            $tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
            $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("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content);