Permalink
Browse files

set change_only_html in socks5.handle_request

  • Loading branch information...
1 parent 4bb9c34 commit e3568b7aeda6139ad4e284d1d51711c84dd74320 @starius committed Jan 17, 2016
Showing with 5 additions and 2 deletions.
  1. +1 −1 onion2web-dev-1.rockspec
  2. +4 −1 onion2web.lua
@@ -12,7 +12,7 @@ description = {
}
dependencies = {
"lua ~> 5.1",
- "socks5 >= 1.5"
+ "socks5 >= 1.6"
}
build = {
type = "builtin",
View
@@ -94,6 +94,7 @@ onion2web.handle_onion2web = function(onion_replacement,
show_confirmation_form()
return
end
+ local change_only_html = true
socks5.handle_request(torhost, torport,
function(clheader)
return clheader
@@ -105,7 +106,9 @@ onion2web.handle_onion2web = function(onion_replacement,
function(soheader)
return soheader
:gsub(hidden_onion, "%1" .. onion_replacement)
- end)
+ end,
+ change_only_html
+ )
end
return onion2web

0 comments on commit e3568b7

Please sign in to comment.