From 0eb688c5bd080e3994b27c12c7954e246706fee8 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 2 Feb 2016 23:49:02 -0600 Subject: pfsync syncpeer requires IPv4. Ticket #4648 --- src/usr/local/www/system_hasync.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/usr/local') 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(); -- cgit v1.1