From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. cb18f19307f64bfadada2d995893d9f5699911ed Date: Sun, 11 Feb 2018 23:26:02 +0000 Message-ID: <20180211232602.601791081BCF@git01.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3429279162827959765==" List-Id: --===============3429279162827959765== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via cb18f19307f64bfadada2d995893d9f5699911ed (commit) from 0102fcabdbf9ebcabff905717e58f5514820243a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit cb18f19307f64bfadada2d995893d9f5699911ed Author: Michael Tremer Date: Sun Feb 11 23:23:54 2018 +0000 index.cgi: Properly show IPsec subnets =20 Fixes: #11604 =20 Signed-off-by: Michael Tremer ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/index.cgi | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) Difference in files: diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index ea91e0c20..580671b71 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -444,9 +444,16 @@ END foreach my $key (sort { uc($vpnconfig{$a}[1]) cmp uc($vpnconfig{$b}[1]) } = keys %vpnconfig) { if ($vpnconfig{$key}[0] eq 'on' && $vpnconfig{$key}[3] ne 'host') { $count++; - my ($vpnip,$vpnsub) =3D split("/",$vpnconfig{$key}[11]); - $vpnsub=3D&General::iporsubtocidr($vpnsub); - $vpnip=3D"$vpnip/$vpnsub"; + + my @n =3D (); + + my @networks =3D split(/\|/, $vpnconfig{$key}[11]); + foreach my $network (@networks) { + my ($vpnip, $vpnsub) =3D split("/", $network); + $vpnsub =3D &Network::convert_netmask2prefix($vpnsub) || $vpnsub; + push(@n, "$vpnip/$vpnsub"); + } + if ($count % 2){ $col =3D $color{'color22'}; }else{ @@ -454,7 +461,7 @@ END } print ""; print "$vpnconfig{$key}[1]"; - print "$vpnip"; + print "" . join("=
", @n) . ""; =20 my $activecolor =3D $Header::colourred; my $activestatus =3D $Lang::tr{'capsclosed'}; hooks/post-receive -- IPFire 2.x development tree --===============3429279162827959765==--