Revision a17027a6
Added by Ermal LUÇI almost 15 years ago
etc/inc/dyndns.class | ||
---|---|---|
122 | 122 |
$this->_dnsMX = $dnsMX; |
123 | 123 |
$this->_if = get_real_interface($dnsIf); |
124 | 124 |
$this->_ifIP = get_interface_ip($dnsIf); |
125 |
//$this->_dnsIP = get_interface_ip($dnsIf); |
|
126 | 125 |
|
127 | 126 |
// Ensure that we where able to lookup the IP |
128 |
if(!$this->_ifIP) |
|
129 |
log_error("There was an error trying to determine the IP for interface - {$dnsIf}({$this->_if})."); |
|
127 |
if(!$this->_ifIP) { |
|
128 |
log_error("There was an error trying to determine the IP for interface - {$dnsIf}({$this->_if}). Probably interface has no ip or is down. Dyndns update not possible for {$dnsService}."); |
|
129 |
return; |
|
130 |
} |
|
130 | 131 |
|
131 | 132 |
$this->_debugID = rand(1000000, 9999999); |
132 | 133 |
|
Also available in: Unified diff
Do not try to update dyndns for an interface that no ip can be determined, since it will not suceed. Reported-by: http://forum.pfsense.org/index.php/topic,28750.0.html