Commit d08eaf69 authored by Peter B's avatar Peter B

Avoid trusting external WINS [tracker #21221]

parent 30a64aa1
......@@ -200,12 +200,16 @@ class OpenVPN extends Daemon
$wins_server = '';
}
if ($is_wins && (!empty($ips[0]))) {
$this->set_wins_server($ips[0]);
} else if (!empty($wins_server)) {
$this->set_wins_server($wins_server);
} else {
$this->set_wins_server('');
try {
if ($is_wins && (!empty($ips[0]))) {
$this->set_wins_server($ips[0]);
} else if (!empty($wins_server)) {
$this->set_wins_server($wins_server);
} else {
$this->set_wins_server('');
}
} catch (Exception $e) {
// We can't always trust validation on WINS server (tracker #21221). Not fatal.
}
// Domain
......
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