Commit 42214674 authored by Franco Fichtner's avatar Franco Fichtner

rc: err, sorry, how long has this been wrong?

parent a99ed3ee
......@@ -1254,8 +1254,10 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
mwexec("/sbin/pfctl -i " . escapeshellarg($realif) . " -Fs");
}
@unlink("/var/db/{$interface}ip");
@unlink("/var/db/{$interface}ipv6");
@unlink("/var/db/{$interface}_ip");
@unlink("/var/db/{$interface}_ipv6");
@unlink("/var/db/{$interface}_cacheip");
@unlink("/var/db/{$interface}_cacheipv6");
@unlink("/var/etc/nameserver_{$realif}");
@unlink("/var/etc/nameserver_v6{$realif}");
@unlink("/var/etc/searchdomain_{$realif}");
......
......@@ -78,8 +78,8 @@ if ((empty($ip) || !is_ipaddr($ip)) && substr($interface_real, 0, 4) != 'ovpn')
$configip = $config['interfaces'][$interface]['ipaddrv6'];
$searchdomain_file = "/var/etc/searchdomain_v6{$interface}";
$nameserver_file = "/var/etc/nameserver_v6{$interface}";
$searchdomain_file = "/var/etc/searchdomain_v6{$interface_real}";
$nameserver_file = "/var/etc/nameserver_v6{$interface_real}";
$cacheip_file = "/var/db/{$interface}_cacheipv6";
$ip_file = "/var/db/{$interface}_ipv6";
......
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