$mpdconf .= " " . $syscfg['dnsserver'][0];
$mpdconf .= "\n";
} else if (is_array($syscfg['dnsserver']) && ($syscfg['dnsserver'][0])) {
- $mpdconf .= " set ipcp dns " . join(" ", $syscfg['dnsserver']) . "\n";
+ $mpdconf .= " set ipcp dns " . join(" ", array_slice($syscfg['dnsserver'], 0, 2)) . "\n";
}
if (isset($pptpdcfg['radius']['enable'])) {
function is_specialnet($net) {
global $specialsrcdst;
- if (in_array($net, $specialsrcdst) || strstr($net, "opt"))
+ if (in_array($net, $specialsrcdst) || (strstr($net, "opt") && !is_alias($net)))
return true;
else
return false;