remove ipv6 address labels (ie. none) (#189)

This commit is contained in:
dman776 2018-09-13 20:02:07 -05:00 committed by GitHub
parent 3938f33afe
commit 1c4e6f1ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ $browser_ip = "";
($ip, $mask, $bcast, $net, $cidr) = get_ip4_network($wifi_iface); ($ip, $mask, $bcast, $net, $cidr) = get_ip4_network($wifi_iface);
$cidr = "/ $cidr" if $cidr; $cidr = "/ $cidr" if $cidr;
$str = "<th align=right><nobr>WiFi address</nobr></th><td>$ip <small>$cidr</small><br>"; $str = "<th align=right><nobr>WiFi address</nobr></th><td>$ip <small>$cidr</small><br>";
$str .= "<small><nobr>" . get_ip6_addr($wifi_iface) . "</nobr></small></td>"; # $str .= "<small><nobr>" . get_ip6_addr($wifi_iface) . "</nobr></small></td>";
push @col1, $str; push @col1, $str;
# find out if the browser is on this node's lan # find out if the browser is on this node's lan
@ -184,7 +184,7 @@ if($ip =~ /^10\./ or not $hide_local)
{ {
$cidr = "/ $cidr" if $cidr; $cidr = "/ $cidr" if $cidr;
$str = "<th align=right><nobr>LAN address</nobr></th><td>$ip <small>$cidr</small><br>"; $str = "<th align=right><nobr>LAN address</nobr></th><td>$ip <small>$cidr</small><br>";
$str .= "<small><nobr>" . get_ip6_addr(get_interface("lan")) . "</nobr></small></td>"; # $str .= "<small><nobr>" . get_ip6_addr(get_interface("lan")) . "</nobr></small></td>";
push @col1, $str; push @col1, $str;
} }
@ -196,7 +196,7 @@ if($ip =~ /^10\./ or not $hide_local)
$cidr = "/ $cidr" if $cidr; $cidr = "/ $cidr" if $cidr;
$cidr = "" unless $cidr; $cidr = "" unless $cidr;
$str = "<th align=right><nobr>WAN address</nobr></th><td>$ip <small>$cidr</small><br>"; $str = "<th align=right><nobr>WAN address</nobr></th><td>$ip <small>$cidr</small><br>";
$str .= "<small><nobr>" . get_ip6_addr("$wanintf") . "</nobr></small></td>"; # $str .= "<small><nobr>" . get_ip6_addr("$wanintf") . "</nobr></small></td>";
push @col1, $str; push @col1, $str;
} }
} }