Project

General

Profile

« Previous | Next » 

Revision 0ec4b3b4

Added by Chris Buechler over 9 years ago

Do curl_init above any curl_setopt, and take it out of that if block since it applies to all types.

View differences:

src/etc/inc/dyndns.class
290 290
				$realparentif = $this->_dnsRequestIf;
291 291
			}
292 292

  
293
			$ch = curl_init();
294

  
293 295
			if ($this->_useIPv6 == false) {
294 296
				curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
295 297
			}
296 298

  
297 299
			if ($this->_dnsService != 'ods' and $this->_dnsService != 'route53 ') {
298
				$ch = curl_init();
299 300
				curl_setopt($ch, CURLOPT_HEADER, 0);
300 301
				curl_setopt($ch, CURLOPT_USERAGENT, $this->_UserAgent);
301 302
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

Also available in: Unified diff