diff options
-rw-r--r-- | src/PurpleCode/PCurl/PCurl.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PurpleCode/PCurl/PCurl.php b/src/PurpleCode/PCurl/PCurl.php index 09d1b25..4c2a428 100644 --- a/src/PurpleCode/PCurl/PCurl.php +++ b/src/PurpleCode/PCurl/PCurl.php @@ -126,7 +126,7 @@ class PCurl { /**
* @return PCurl
*/
- public function proxy($host, $port, $user = null, $password = null) {
+ public function proxy($host, $port = 8080, $user = null, $password = null) {
$this->setOption(CURLOPT_PROXYTYPE, 'HTTP');
$this->setOption(CURLOPT_PROXY, $host);
$this->setOption(CURLOPT_PROXYPORT, $port);
|