Project

General

Profile

« Previous | Next » 

Revision 590aa3e7

Added by Chris Buechler over 10 years ago

After discussion with Ermal, remove this to force consumers to send things
properly. I fixed the scenario in Unbound where it was sending IPs to
these functions rather than an interface, so this has no functional diff.

View differences:

etc/inc/interfaces.inc
4798 4798
}
4799 4799

  
4800 4800
function get_interface_ip($interface = "wan") {
4801
	// if we get passed an IP for some reason, return the IP. 
4802
	if (is_ipaddr($interface))
4803
		return $interface;
4804 4801
	
4805 4802
	$realif = get_failover_interface($interface);
4806 4803
	if (!$realif) {
......
4820 4817
function get_interface_ipv6($interface = "wan", $flush = false) {
4821 4818
	global $config;
4822 4819

  
4823
	// if we get passed an IP for some reason, return the IP. 
4824
	if (is_ipaddr($interface))
4825
		return $interface;
4826

  
4827 4820
	$realif = get_failover_interface($interface, "inet6");
4828 4821
	if (!$realif) {
4829 4822
		if (strstr($interface, "_vip"))

Also available in: Unified diff