Project

General

Profile

Bug #3282

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

Added by Jim Pingle over 7 years ago. Updated over 7 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:
Default
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

Associated revisions

Revision f44ac2e9 (diff)
Added by Renato Botelho over 7 years ago

Use a more accurate error message, fixes #3282

Revision bf755503 (diff)
Added by Renato Botelho over 7 years ago

Use a more accurate error message, fixes #3282

History

#1 Updated by Renato Botelho over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by Renato Botelho over 7 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF