summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/interfaces.inc7
1 files changed, 0 insertions, 7 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index a99270d..eea4d6b 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -4798,9 +4798,6 @@ function ip_in_interface_alias_subnet($interface, $ipalias) {
}
function get_interface_ip($interface = "wan") {
- // if we get passed an IP for some reason, return the IP.
- if (is_ipaddr($interface))
- return $interface;
$realif = get_failover_interface($interface);
if (!$realif) {
@@ -4820,10 +4817,6 @@ function get_interface_ip($interface = "wan") {
function get_interface_ipv6($interface = "wan", $flush = false) {
global $config;
- // if we get passed an IP for some reason, return the IP.
- if (is_ipaddr($interface))
- return $interface;
-
$realif = get_failover_interface($interface, "inet6");
if (!$realif) {
if (strstr($interface, "_vip"))
OpenPOWER on IntegriCloud