Skip to content
Browse files

Only redirect to the proxy address on connect()

  • Loading branch information...
1 parent 915f5c4 commit 8148bdbd276ca79d5a60adf87b35580ca8909fe8 @jedisct1 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 example-filters/filter-transparent-proxy.rb
View
2 example-filters/filter-transparent-proxy.rb
@@ -14,7 +14,7 @@
end
pac.feed(data)
pac.each do |obj|
- if (obj["remote_port"] || nil) == 80
+ if obj["function"] == "connect" && obj["remote_port"] == 80
obj["remote_port"] = 8080
obj["remote_host"] = "127.0.0.1"
else

0 comments on commit 8148bdb

Please sign in to comment.
Something went wrong with that request. Please try again.