summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/backend.php1
-rw-r--r--lib/fuckhtml.php3
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/backend.php b/lib/backend.php
index 09a4267..00161a6 100644
--- a/lib/backend.php
+++ b/lib/backend.php
@@ -74,6 +74,7 @@ class backend{
break;
case "socks5_hostname":
+ case "socks5a":
curl_setopt($curlproc, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5_HOSTNAME);
curl_setopt($curlproc, CURLOPT_PROXY, $address . ":" . $port);
break;
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index 8b5eba5..d89a7bc 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -424,8 +424,6 @@ class fuckhtml{
$escape = false;
}
- $lastchar = $json[$i];
-
if(
$bracket === false &&
$is_close_bracket === false
@@ -436,7 +434,6 @@ class fuckhtml{
case "[":
case "{":
- // dont execute whats in "default"
$json_out .= $json[$i];
break;