in this PAC file, we just need to change the proxy values which we get by python script (parallel pinging) and we will have proxy for every case.
But this brings a major shift to the workflow! For the first time, you need to add local URL in Firefox/Chrome Preferences of the PAC file. Secondly, you may need to sometimes reload PAC file (there is a button for that firefox)
I know it's very radical but it allows us to support Windows and mostly all linux distros
But it helps a lot, setting socks proxy in /etc/environment is a pain and at least in Kubuntu i can't make environment variables to set as System proxy as well. With PAC we don't have to worry about anything like that.
I'm actually reallly confused myself, but it makes setting both socks proxy and http proxy so simple... that i think we should really consider this option.