k1995 / glype

A copy of glype,web-based proxy script written in PHP
Other
85 stars 69 forks source link

Using glype with TOR (or other proxies) #1

Open s5410s opened 6 years ago

s5410s commented 6 years ago

I made a dirty hack

TODO: make it configurable

s5410s commented 6 years ago

diff -urN glype.old/browse.php glype/browse.php --- glype.old/browse.php 2018-05-06 20:12:39.000000000 +0300 +++ glype/browse.php 2018-05-06 20:23:44.000000000 +0300 @@ -314,6 +314,9 @@

+# Use proxy +$toSet[CURLOPT_PROXY] = 'socks5h://127.0.0.1:9050'; +

Time to wait for connection

$toSet[CURLOPT_CONNECTTIMEOUT] = $CONFIG['connection_timeout'];