/[smecontribs]/rpms/smeserver-softethervpn-server/contribs10/smeserver-softethervpn-server-4.34-bz11511.patch
ViewVC logotype

Annotation of /rpms/smeserver-softethervpn-server/contribs10/smeserver-softethervpn-server-4.34-bz11511.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Mar 30 23:06:07 2021 UTC (3 years, 1 month ago) by jpp
Branch: MAIN
CVS Tags: smeserver-softethervpn-server-4_34-7_el7_sme, smeserver-softethervpn-server-4_34-8_el7_sme, HEAD
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> %{version}-7.sme
- move template custom to core for https access on local only [SME: 11511]

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     -

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed