// @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);