diff options
author | Ermal <eri@pfsense.org> | 2013-12-20 22:45:25 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-20 22:45:25 +0000 |
commit | e800a773c46b9b9a6592d36157b5a7ef222caced (patch) | |
tree | d30d8aeeaeae52d8e9f4ea42a944f8282e15945f | |
parent | 362ec35df2999b4ab75c72473c0b3c938070c2bc (diff) | |
download | pfsense-e800a773c46b9b9a6592d36157b5a7ef222caced.zip pfsense-e800a773c46b9b9a6592d36157b5a7ef222caced.tar.gz |
Call rc.newwanipv6 efficently through FCGI
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index af22fcb..fe800dd 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -3568,7 +3568,9 @@ function interface_dhcpv6_configure($interface = "wan", $wancfg) { $dhcp6cscript = "#!/bin/sh\n"; $dhcp6cscript .= "# This shell script launches /etc/rc.newwanipv6 with a interface argument.\n"; - $dhcp6cscript .= "/etc/rc.newwanipv6 {$wanif} \n"; + $dhcp6cscript .= "\$dmips = \${new_domain_name_servers}\n"; + $dhcp6cscript .= "\$dmservers = \${new_domain_name}\n"; + $dhcp6cscript .= "/usr/local/sbin/fcgicli -f /etc/rc.newwanipv6 -d \"interface={$wanif}&dmservers=\$dmservers&dmips=\$dmips\"\n"; /* Add wide-dhcp6c shell script here. Because we can not pass a argument to it. */ if (!@file_put_contents("{$g['varetc_path']}/dhcp6c_{$interface}_script.sh", $dhcp6cscript)) { printf("Error: cannot open dhcp6c_{$interface}_script.sh in interface_dhcpv6_configure() for writing.\n"); |