mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
interfaces: protect call of new WAN IPv6 #1668
This commit is contained in:
parent
ac40e5218a
commit
ea6b5bda52
@ -3183,8 +3183,7 @@ function interface_dhcpv6_configure($interface = 'wan', $wancfg)
|
||||
unset($dhcp6cconf);
|
||||
|
||||
$dhcp6cscript = "#!/bin/sh\n";
|
||||
$dhcp6cscript .= "# This shell script launches /usr/local/etc/rc.newwanipv6 with a interface argument.\n";
|
||||
$dhcp6cscript .= "/usr/local/etc/rc.newwanipv6 {$wanif} \n";
|
||||
$dhcp6cscript .= "/usr/local/opnsense/service/configd_ctl.py interface newipv6 {$wanif}\n";
|
||||
|
||||
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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user