On 2016-9-18 12:54, Ralph Fox wrote:
> On Sun, 18 Sep 2016 09:58:02 +0800, Lu Wei wrote:
>
>> I have a PAC file (flora.pac) which works on Firefox PC. The beginning
>> of file:
>>
>> //
https://github.com/usufu/Flora_Pac/blob/master/flora_pac.pac
>> var hasOwnProperty = Object.hasOwnProperty;
>> var iproxy ='DIRECT';
>> var out_gfw_proxy = 'PROXY 192.168.42.1:8580;';
>> ....
>> Mainly the purpose is to select a proxy
192.168.42.1:8580 (on local PC)
>> when URL matches specific patterns, and connect directly on other URLs.
>>
>> Then I copied it to phone's //sdcard/download (IP address
>> 192.168.42.129), go to about:config of Firefox Android 48.0, changed two
>> values:
>>
>> network.proxy.type=2
>> network.proxy.autoconfig_url=file://sdcard/download/flora.pac
>
>
> ISTM that should be file:///sdcard/download/flora.pac
>
Thank you, it works! In fact I tried that before, but not work at the
time. Maybe because I did not restart Firefox. I find now the config
change only takes effect after I kill and reopen Firefox manually.
Now a new problem: since Android has a PAC setting in WLAN, I restored
the two network.proxy settings in Firefox, and set in connected Wifi
hotspot PAC URL as "file:///sdcard/download/flora.pac", Then open
Firefox Android or other network Apps to test, but again, direct
connection works and proxy connection doesn't work. I also tried
"/sdcard/download/flora.pac", did a system restart, but still no luck.
What should be the correct form?