summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-20 22:45:25 +0000
committerErmal <eri@pfsense.org>2013-12-20 22:45:25 +0000
commite800a773c46b9b9a6592d36157b5a7ef222caced (patch)
treed30d8aeeaeae52d8e9f4ea42a944f8282e15945f /etc
parent362ec35df2999b4ab75c72473c0b3c938070c2bc (diff)
downloadpfsense-e800a773c46b9b9a6592d36157b5a7ef222caced.zip
pfsense-e800a773c46b9b9a6592d36157b5a7ef222caced.tar.gz
Call rc.newwanipv6 efficently through FCGI
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
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");
OpenPOWER on IntegriCloud