Skip to content

Commit

Permalink
Update sdata-modules.php
Browse files Browse the repository at this point in the history
  • Loading branch information
radenvodka authored Feb 3, 2018
1 parent 013bb7d commit d809afa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdata-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function sdata($url = null , $custom = null){
if($custom[$i]['proxy']){
curl_setopt($ch[$i], CURLOPT_PROXY, $custom[$i]['proxy']['ip']);
curl_setopt($ch[$i], CURLOPT_PROXYPORT, $custom[$i]['proxy']['port']);
if( $custom[$i]['proxy']['type'] ){
curl_setopt($ch[$i], CURLOPT_PROXYTYPE, $custom[$i]['proxy']['type']);
}
}
curl_setopt($ch[$i], CURLOPT_VERBOSE, false);
curl_setopt($ch[$i], CURLOPT_CONNECTTIMEOUT , 0);
Expand Down Expand Up @@ -106,4 +109,4 @@ public function session_remove($arrayrespons){
}
}
}
$sdata = new Modules();
$sdata = new Modules();

1 comment on commit d809afa

@radenvodka
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add proxy type

Please sign in to comment.