function header_send() local al= hc.get_global('IPList2proxy') if #al<1 then return end local Host = re.find(hc.request_header, [[^Host: *\K[^\r\n]+]])-- hc.put_to_log('Host-'..Host) if not Host then return end local IP= hc.get_host_IP(Host) hc.put_to_log('url-'..hc.url..' IP-'..IP) if not IP then return end local i for i=1, #al do if al[i]==IP then hc.use_proxy= 'proxy.antizapret.prostovpn.org:3128'; hc.monitor_string = hc.monitor_string .. ', IPlist2proxy' return end endend
27.02.17 22:07:18,543 # 266 -=< MESSAGE FROM EXTENSION >=- C:\HandyCache\Extensions\IPlist2proxy.luaHost-example.сom:443
local Host = re.find(hc.request_header, [[^Host: *\K[^\r\n]+]])