summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-12-13 10:53:08 -0200
committerRenato Botelho <renato@netgate.com>2016-12-13 10:53:08 -0200
commit4cc53fbddc6c523037a7c7de2ae199e8e377e835 (patch)
treeef755c395d3df207aa4d08ad5345f48b2b7c8563 /src/usr
parent495aefc35cb927bed482e785ccf9cf86f86fe4bb (diff)
parentbdda1446ca335dfcbfb3d9937a20dd2a5bf93ae9 (diff)
downloadpfsense-4cc53fbddc6c523037a7c7de2ae199e8e377e835.zip
pfsense-4cc53fbddc6c523037a7c7de2ae199e8e377e835.tar.gz
Merge pull request #3270 from phil-davis/patch-5
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/services_dhcp_relay.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/services_dhcp_relay.php b/src/usr/local/www/services_dhcp_relay.php
index e57da84..e824b44 100644
--- a/src/usr/local/www/services_dhcp_relay.php
+++ b/src/usr/local/www/services_dhcp_relay.php
@@ -84,8 +84,8 @@ if ($_POST) {
if ($_POST['server']) {
foreach ($_POST['server'] as $checksrv => $srv) {
if (!empty($srv[0])) { // Filter out any empties
- if (!is_ipaddr($srv[0])) {
- $input_errors[] = sprintf(gettext("Destination Server IP address %s is not a valid IP address."), $srv[0]);
+ if (!is_ipaddrv4($srv[0])) {
+ $input_errors[] = sprintf(gettext("Destination Server IP address %s is not a valid IPv4 address."), $srv[0]);
}
if (!empty($svrlist)) {
@@ -175,9 +175,10 @@ function createDestinationServerInputGroup($value = null) {
$group->add(new Form_IpAddress(
'server',
'Destination server',
- $value
+ $value,
+ 'V4'
))->setWidth(4)
- ->setHelp('This is the IP address of the server to which DHCP requests are relayed.')
+ ->setHelp('This is the IPv4 address of the server to which DHCP requests are relayed.')
->setIsRepeated();
$group->enableDuplication(null, true); // Buttons are in-line with the input
OpenPOWER on IntegriCloud