Revision f1d3adf1
Added by Chris Buechler almost 10 years ago
src/etc/inc/dyndns.class | ||
---|---|---|
282 | 282 |
if ($this->_dnsVerboseLog) { |
283 | 283 |
log_error("DynDNS ({$this->_dnsHost}): DynDns _update() starting."); |
284 | 284 |
} |
285 |
|
|
286 |
if (strstr($this->_dnsRequestIf, "_vip")) { |
|
287 |
$parentif = link_carp_interface_to_parent($this->_dnsRequestIf); |
|
288 |
$realparentif = convert_friendly_interface_to_real_interface_name($parentif); |
|
289 |
} else { |
|
290 |
$realparentif = $this->_dnsRequestIf; |
|
291 |
} |
|
285 | 292 |
|
286 | 293 |
if ($this->_dnsService != 'ods' and $this->_dnsService != 'route53 ') { |
287 | 294 |
$ch = curl_init(); |
288 | 295 |
curl_setopt($ch, CURLOPT_HEADER, 0); |
289 | 296 |
curl_setopt($ch, CURLOPT_USERAGENT, $this->_UserAgent); |
290 | 297 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
291 |
curl_setopt($ch, CURLOPT_INTERFACE, 'if!' . $this->_dnsRequestIf);
|
|
298 |
curl_setopt($ch, CURLOPT_INTERFACE, 'if!' . $realparentif);
|
|
292 | 299 |
curl_setopt($ch, CURLOPT_TIMEOUT, 120); // Completely empirical |
293 | 300 |
} |
294 | 301 |
|
Also available in: Unified diff
Use the appropriate parent interface with gateway groups using CARP VIPs.
Ticket #4990