summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-18 23:24:10 +0100
committerErmal <eri@pfsense.org>2014-11-18 23:24:10 +0100
commit156bb8f193c969afff1a5209743a21d44e43a2ac (patch)
tree54db8b514d1b2ac245815614cedbfb3b8b877622
parent5d697e087a01d5c75705516d1bd69a09f2ed7048 (diff)
downloadpfsense-156bb8f193c969afff1a5209743a21d44e43a2ac.zip
pfsense-156bb8f193c969afff1a5209743a21d44e43a2ac.tar.gz
Actually trim if the user put any : on the prefix of the ISP to be able to properly set the gateway
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index ea11329..f4bbf82 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3450,7 +3450,7 @@ function interface_6rd_configure($interface = "wan", $wancfg) {
/* create the long prefix notation for math, save the prefix length */
$rd6prefix = explode("/", $wancfg['prefix-6rd']);
$rd6prefixlen = $rd6prefix[1];
- $rd6brgw = "{$rd6prefix[0]}{$wancfg['gateway-6rd']}";
+ $rd6brgw = rtrim($rd6prefix[0], ':') . ":{$wancfg['gateway-6rd']}";
$rd6prefix = Net_IPv6::uncompress($rd6prefix[0]);
/* binary presentation of the prefix for all 128 bits. */
OpenPOWER on IntegriCloud