mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
OpenVPN: remove checks for NTP servers 3 and 4. (#4811)
OpenVPN: remove checks for NTP servers 3 and 4 since only two optional NTP servers are exposed through the GUI.
This commit is contained in:
parent
17777fbd89
commit
bb6cd163d4
@ -158,12 +158,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (!empty($pconfig['ntp_server2']) && !is_ipaddr(trim($pconfig['ntp_server2']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #2' must contain a valid IP address");
|
||||
}
|
||||
if (!empty($pconfig['ntp_server3']) && !is_ipaddr(trim($pconfig['ntp_server3']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #3' must contain a valid IP address");
|
||||
}
|
||||
if (!empty($pconfig['ntp_server4']) && !is_ipaddr(trim($pconfig['ntp_server4']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #4' must contain a valid IP address");
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($pconfig['netbios_enable'])) {
|
||||
|
||||
@ -264,12 +264,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (!empty($pconfig['ntp_server2']) && !is_ipaddr(trim($pconfig['ntp_server2']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #2' must contain a valid IP address");
|
||||
}
|
||||
if (!empty($pconfig['ntp_server3']) && !is_ipaddr(trim($pconfig['ntp_server3']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #3' must contain a valid IP address");
|
||||
}
|
||||
if (!empty($pconfig['ntp_server4']) && !is_ipaddr(trim($pconfig['ntp_server4']))) {
|
||||
$input_errors[] = gettext("The field 'NTP Server #4' must contain a valid IP address");
|
||||
}
|
||||
|
||||
if (!empty($pconfig['wins_server_enable'])) {
|
||||
if (!empty($pconfig['wins_server1']) && !is_ipaddr(trim($pconfig['wins_server1']))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user