summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-02 23:49:02 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-02 23:49:02 -0600
commit0eb688c5bd080e3994b27c12c7954e246706fee8 (patch)
treeffcb952eeec14835bde3f2ca90d3e0a2a9facb37 /src
parentd72aaef520f381fce2f247d752c01821c8596622 (diff)
downloadpfsense-0eb688c5bd080e3994b27c12c7954e246706fee8.zip
pfsense-0eb688c5bd080e3994b27c12c7954e246706fee8.tar.gz
pfsync syncpeer requires IPv4. Ticket #4648
Diffstat (limited to 'src')
-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