system: "fly me to the moon" error in previous :)

This commit is contained in:
Franco Fichtner 2018-03-24 11:30:50 +00:00
parent 700dc954d4
commit 1449503cdc

View File

@ -81,7 +81,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
if (!empty($pconfig['pfsyncpeerip']) && is_ipaddrv4($pconfig['pfsyncpeerip'])) {
if (!empty($pconfig['pfsyncpeerip']) && !is_ipaddrv4($pconfig['pfsyncpeerip'])) {
$input_errors[] = gettext('The synchronize peer IP must be an IPv4 address or left empty.');
}