diff options
author | smos <seth.mos@dds.nl> | 2012-02-08 13:08:24 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-02-08 13:08:24 +0100 |
commit | 09f638b69ff6d0f5dd0ac69cc50a58e41054b812 (patch) | |
tree | 48969a90d758d044336f785d99f120e446f559ae /etc/inc | |
parent | 51c57aae959658ded830bae4b6dc7645c3799bbd (diff) | |
download | pfsense-09f638b69ff6d0f5dd0ac69cc50a58e41054b812.zip pfsense-09f638b69ff6d0f5dd0ac69cc50a58e41054b812.tar.gz |
Make sure to pass the string, not the array
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 3a83d4b..4ec4f3b 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3017,6 +3017,7 @@ function interface_6rd_configure($interface = "wan"){ $rd6lanbinarr = str_split($rd6lanbin, 16); foreach($rd6lanbinarr as $bin) $rd6lanarr[] = dechex(bindec($bin)); + $rd6lanpr = Net_IPv6::compress(implode(":", $rd6lanarr)); $rd6lanarr[7] = 1; $rd6lan = Net_IPv6::compress(implode(":", $rd6lanarr)); // echo "6RD LAN prefix $rd6lan length 64\n"; @@ -3025,7 +3026,7 @@ function interface_6rd_configure($interface = "wan"){ /* setup the stf interface */ mwexec("/sbin/ifconfig stf0 destroy"); mwexec("/sbin/ifconfig stf0 create"); - mwexec("/sbin/ifconfig stf0 inet6 {$rd6lanarr}/{$rd6prefixlen}"); + mwexec("/sbin/ifconfig stf0 inet6 {$rd6lanpr}/{$rd6prefixlen}"); /* Example 6RD setup steps # ifconfig fxp0 inet6 2001:db8:c000:0202::1/64 |