]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/client/http/class_HttpClient.p
Rewrite continued:
[core.git] / framework / main / classes / client / http / class_HttpClient.p
index c8222de76d10442ebb0e6a3a285e5c5801dada8d..98e50d0152612f4a2996fb085b8a6526d44fc2e7 100644 (file)
@@ -3,9 +3,11 @@
                // @TODO Add some DNS caching here
 
                // Open connection
-               if ($helperInstance->isProxyUsed() === TRUE) {
+               if ($helperInstance->isProxyUsed() === true) {
                        // Resolve hostname into IP address
-                       $ip = $helperInstance->resolveIpAddress($helperInstance->getConfigInstance()->getConfigEntry('proxy_host'));
+                       $ip = ConsoleTools::resolveIpAddress($helperInstance->getConfigInstance()->getConfigEntry('proxy_host'));
+
+                       // @TODO Handle $ip = false
 
                        // Connect to host through proxy connection
                        $socketResource = fsockopen($ip, $helperInstance->getConfigInstance()->getConfigEntry('proxy_port'), $errorNo, $errorStr, 30);