Project

General

Profile

Actions

Bug #3282

closed

Gateway error "You can not use a IPv4 Gateway Address on a IPv6 only interface." is not accurate

Added by Jim Pingle about 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Gateways
Target version:
Start date:
10/21/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

Attempting to add an IPv4 gateway to an interface where no IPv4 address can be located results in the error "You can not use a IPv4 Gateway Address on a IPv6 only interface." even if there is no IPv6 configured on that interface.

It should be changed to something that more accurately describes the situation, such as:

"Cannot add IPv4 Gateway Address because no IPv4 address could be found on the interface."

Alternately, if some code is added to also check for the presence of an IPv6 address then the "You can not use a IPv4 Gateway Address on a IPv6 only interface." may be printed but only if that case is actually true.

The test in question is at source:usr/local/www/system_gateways_edit.php#L119

Actions

Also available in: Atom PDF