diff options
author | Ermal <eri@pfsense.org> | 2014-11-18 23:24:10 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-11-18 23:24:10 +0100 |
commit | 156bb8f193c969afff1a5209743a21d44e43a2ac (patch) | |
tree | 54db8b514d1b2ac245815614cedbfb3b8b877622 | |
parent | 5d697e087a01d5c75705516d1bd69a09f2ed7048 (diff) | |
download | pfsense-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.inc | 2 |
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. */ |