Project

General

Profile

« Previous | Next » 

Revision d20a3d08

Added by Chris Buechler over 9 years ago

use get_interface_ip functions rather than find_ since the former handles VIPs, gateway groups, etc. correctly. Ticket #4858

View differences:

src/etc/inc/dyndns.class
1613 1613
			}
1614 1614

  
1615 1615
			if ($this->_useIPv6 == true) {
1616
				$ip_address = find_interface_ipv6($this->_if);
1616
				$ip_address = get_interface_ipv6($this->_if);
1617 1617
				if (!is_ipaddrv6($ip_address)) {
1618 1618
					return 0;
1619 1619
				}
1620 1620
			} else {
1621
				$ip_address = find_interface_ip($this->_if);
1621
				$ip_address = get_interface_ip($this->_if);
1622 1622
				if (!is_ipaddr($ip_address)) {
1623 1623
					return 0;
1624 1624
				}

Also available in: Unified diff