diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-02-02 23:49:02 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-02-02 23:49:02 -0600 |
commit | 0eb688c5bd080e3994b27c12c7954e246706fee8 (patch) | |
tree | ffcb952eeec14835bde3f2ca90d3e0a2a9facb37 /src/usr/local/www/system_hasync.php | |
parent | d72aaef520f381fce2f247d752c01821c8596622 (diff) | |
download | pfsense-0eb688c5bd080e3994b27c12c7954e246706fee8.zip pfsense-0eb688c5bd080e3994b27c12c7954e246706fee8.tar.gz |
pfsync syncpeer requires IPv4. Ticket #4648
Diffstat (limited to 'src/usr/local/www/system_hasync.php')
-rwxr-xr-x | src/usr/local/www/system_hasync.php | 6 |
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(); |