Skip to content

Commit

Permalink
Merge pull request #8 from Tankonyako/4.x
Browse files Browse the repository at this point in the history
fix for proxy auth
  • Loading branch information
Allyans3 authored Dec 15, 2022
2 parents 92e0a92 + 8f80395 commit bbc546f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/EngineService.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function setProxyForSingle(array $proxy): array
$curlData[CURLOPT_PROXY] = $proxy['domain_name'];

if (array_key_exists('user', $proxy) && array_key_exists('pass', $proxy))
$curlData[CURLOPT_PROXYAUTH] = $proxy['user'].':'.$proxy['pass'];
$curlData[CURLOPT_PROXYUSERPWD] = $proxy['user'].':'.$proxy['pass'];
if (array_key_exists('type', $proxy))
$curlData[CURLOPT_PROXYTYPE] = $proxy['type'];
if (array_key_exists('timeout', $proxy))
Expand All @@ -26,4 +26,4 @@ public static function setProxyForSingle(array $proxy): array

return $curlData;
}
}
}

0 comments on commit bbc546f

Please sign in to comment.