Project

General

Profile

« Previous | Next » 

Revision f44ac2e9

Added by Renato Botelho almost 12 years ago

Use a more accurate error message, fixes #3282

View differences:

usr/local/www/system_gateways_edit.php
117 117
			$parent_ip = get_interface_ip($_POST['interface']);
118 118
			$parent_sn = get_interface_subnet($_POST['interface']);
119 119
			if(empty($parent_ip) || empty($parent_sn)) {
120
				$input_errors[] = gettext("You can not use a IPv4 Gateway Address on a IPv6 only interface.");
120
				$input_errors[] = gettext("Cannot add IPv4 Gateway Address because no IPv4 address could be found on the interface.");
121 121
			} else {
122 122
				$subnets = array(gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn);
123 123
				$vips = link_interface_to_vips($_POST['interface']);
......
145 145
				$parent_ip = get_interface_ipv6($_POST['interface']);
146 146
				$parent_sn = get_interface_subnetv6($_POST['interface']);
147 147
				if(empty($parent_ip) || empty($parent_sn)) {
148
					$input_errors[] = gettext("You can not use a IPv6 Gateway Address on a IPv4 only interface.");
148
					$input_errors[] = gettext("Cannot add IPv6 Gateway Address because no IPv6 address could be found on the interface.");
149 149
				} else {
150 150
					$subnets = array(gen_subnetv6($parent_ip, $parent_sn) . "/" . $parent_sn);
151 151
					$vips = link_interface_to_vips($_POST['interface']);

Also available in: Unified diff