summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_hasync.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/system_hasync.php')
-rwxr-xr-xsrc/usr/local/www/system_hasync.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/system_hasync.php b/src/usr/local/www/system_hasync.php
index 6104d5c..f078910 100755
--- a/src/usr/local/www/system_hasync.php
+++ b/src/usr/local/www/system_hasync.php
@@ -108,6 +108,12 @@ if ($_POST) {
$input_errors[] = gettext("Password and confirmation must match.");
}
+ if ($pconfig['pfsyncpeerip'] != "") {
+ if (!is_ipaddrv4($pconfig['pfsyncpeerip'])) {
+ $input_errors[] = gettext("pfsync Synchronize Peer IP must be an IPv4 IP.");
+ }
+ }
+
if (!$input_errors) {
write_config("Updated High Availability Sync configuration");
interfaces_sync_setup();
OpenPOWER on IntegriCloud