Commit ea6b5bda authored by Franco Fichtner's avatar Franco Fichtner

interfaces: protect call of new WAN IPv6 #1668

parent ac40e521
...@@ -3183,8 +3183,7 @@ function interface_dhcpv6_configure($interface = 'wan', $wancfg) ...@@ -3183,8 +3183,7 @@ function interface_dhcpv6_configure($interface = 'wan', $wancfg)
unset($dhcp6cconf); unset($dhcp6cconf);
$dhcp6cscript = "#!/bin/sh\n"; $dhcp6cscript = "#!/bin/sh\n";
$dhcp6cscript .= "# This shell script launches /usr/local/etc/rc.newwanipv6 with a interface argument.\n"; $dhcp6cscript .= "/usr/local/opnsense/service/configd_ctl.py interface newipv6 {$wanif}\n";
$dhcp6cscript .= "/usr/local/etc/rc.newwanipv6 {$wanif} \n";
if (!@file_put_contents("/var/etc/dhcp6c_{$interface}_script.sh", $dhcp6cscript)) { if (!@file_put_contents("/var/etc/dhcp6c_{$interface}_script.sh", $dhcp6cscript)) {
printf("Error: cannot open dhcp6c_{$interface}_script.sh in interface_dhcpv6_configure() for writing.\n"); printf("Error: cannot open dhcp6c_{$interface}_script.sh in interface_dhcpv6_configure() for writing.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment