diff options
author | Mateusz Jaworski <niespammnie@gmail.com> | 2014-02-26 08:55:33 +0100 |
---|---|---|
committer | Mateusz Jaworski <niespammnie@gmail.com> | 2014-02-26 08:55:33 +0100 |
commit | 2520629f8ae91270c5877caf672887b10a4b69a3 (patch) | |
tree | 6b4e875ebcc7daccacfcd914d72df9d973c5ef96 | |
parent | 36afebbaae312eba0a47612cfcacb68dbf2145ba (diff) | |
download | php.curl-2520629f8ae91270c5877caf672887b10a4b69a3.zip php.curl-2520629f8ae91270c5877caf672887b10a4b69a3.tar.gz php.curl-2520629f8ae91270c5877caf672887b10a4b69a3.tar.bz2 |
default proxy port set to 8080
-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);
|