1 |
jpp |
1.1 |
diff -Nur --no-dereference smeserver-softethervpn-server-4.34.old/root/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35SSL00Listen443 smeserver-softethervpn-server-4.34/root/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35SSL00Listen443 |
2 |
|
|
--- smeserver-softethervpn-server-4.34.old/root/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35SSL00Listen443 2021-03-30 18:48:42.959000000 -0400 |
3 |
|
|
+++ smeserver-softethervpn-server-4.34/root/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/35SSL00Listen443 1969-12-31 19:00:00.000000000 -0500 |
4 |
|
|
@@ -1,25 +0,0 @@ |
5 |
|
|
-{ |
6 |
|
|
- my $listen_default = "Listen 0.0.0.0:$httpsPort"; |
7 |
|
|
- |
8 |
|
|
- my $mode = $SystemMode || "serveronly"; |
9 |
|
|
- |
10 |
|
|
- return $listen_default if ($mode eq "serveronly"); |
11 |
|
|
- |
12 |
|
|
- my $httpdAccess = ${'httpd-e-smith'}{access} || 'private'; |
13 |
|
|
- |
14 |
|
|
- my $httpsOnlyLocal = ${'httpd-e-smith'}{httpsOnlyLocal} || 'disabled'; |
15 |
|
|
- |
16 |
|
|
- return $listen_default unless ($httpdAccess eq "private") || ($httpsOnlyLocal eq "enabled"); |
17 |
|
|
- |
18 |
|
|
- # Only selectively bind interfaces if we are in private server/gateway mode |
19 |
|
|
- |
20 |
|
|
- my @ipAddresses = ("127.0.0.1", $LocalIP); |
21 |
|
|
- |
22 |
|
|
- # Remove any duplicate IP addresses |
23 |
|
|
- my %ipAddresses = map { $_ => 1 } @ipAddresses; |
24 |
|
|
- foreach my $ip (sort keys %ipAddresses) |
25 |
|
|
- { |
26 |
|
|
- $OUT .= "Listen $ip:$httpsPort\n"; |
27 |
|
|
- } |
28 |
|
|
-} |
29 |
|
|
- |