insert "socks 127.0.0.1:1080" before "socks5 127.0.0.1:1080" into proxy variable value. ref http://chenyufei.info/blog/2012-03-18/pac-and-debug/