Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
87fb6509
Commit
87fb6509
authored
Dec 20, 2008
by
tbrehm
Browse files
Add ispconfig port to firewall if port != 8080
parent
86624584
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
87fb6509
...
...
@@ -728,6 +728,11 @@ class installer_base {
$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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment