hhhaiai / switchy

Automatically exported from code.google.com/p/switchy
1 stars 0 forks source link

Auto Switch Mode/ Switch Rules doesn't work #325

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable switch rules
2. add one simple HTTP rule
3. use auto switch mode
4. rules doesn't work

What is the expected output?
Rules should work

What do you see instead?
It doesn't work

Operating system:
Windows

Error Log:
copy it from "chrome-
extension://caehdcpeofiiigpdhbabniblemipncjj/console.html"
[02:12:18] [info] - Extension Info: v1.6.3
[02:12:18] [info] - Browser Info: 5.0 (Windows NT 5.1) AppleWebKit/534.24 
(KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24
[02:30:14] [success] - Everything is OK

Please provide any additional information below. Attach a screenshot if
possible.

In the auto switch mode, we can see the global system proxy settings  "use 
automatic configuration script" is something like: 
"file://C:/Documents%20and%20Settings/Administrator/Local%20Settings/Application
%20Data/Google/Chrome/User%20Data/Default/Extensions/caehdcpeofiiigpdhbabniblemi
pncjj/SwitchyAuto.pac?1304760328883"

Actually it doesn't work on my system,
I tried 
"file://C:/Documents and Settings/Administrator/Local Settings/Application 
Data/Google/Chrome/User 
Data/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/SwitchyAuto.pac?1304760
328883", 
this also doesn't work.

Then I tried 
"file://C:/Documents and Settings/Administrator/Local Settings/Application 
Data/Google/Chrome/User 
Data/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/SwitchyAuto.pac", 
this one does work!

Does anyone have any comment on this?
Thank you.

Original issue reported on code.google.com by mayer...@gmail.com on 7 May 2011 at 9:33

GoogleCodeExporter commented 9 years ago
I also can confirm this autoswtich does not work. 

Pacfile:
function FindProxyForURL(url, host) {
    if (shExpMatch(url, '*pandora*')) return 'SOCKS 127.0.0.1:9050';
    return ''DIRECT'';
}

Rule list:
; Summary: Proxy Switchy! Exported Rule List
; Date: Thursday, May 19, 2011
; Website: http://bit.ly/proxyswitchy

#BEGIN

[wildcard]
*pandora*

[regexp]

#END

--------------
Tried saving, reloading..etc.. everything
Running Ubuntu 11..whatever
Chrome: 11.0.696.65
Switchy: 1.6.3

Original comment by tom.baby...@googlemail.com on 19 May 2011 at 2:08

GoogleCodeExporter commented 9 years ago
doesn't work for me on Google Chrome 14.0.0.797.0 dev

Original comment by jesse....@gmail.com on 21 Jun 2011 at 7:47

GoogleCodeExporter commented 9 years ago
I can confirm this as well. Using Chrome 13.0.782.32.

I tried, for example, Tor with a switch ://*.whatismyip.com/* and it's no good. 
Manually switching does work, but the switch rules do not.

Original comment by tyb...@gmail.com on 2 Jul 2011 at 12:34

GoogleCodeExporter commented 9 years ago
This bug is now present in Chrome stable (12.0.742.112).

Original comment by lastex...@gmail.com on 9 Jul 2011 at 6:35

GoogleCodeExporter commented 9 years ago
Same issue here. The auto-switch no longer works on Chrome 13.0.782.55 (Mac OSX 
10.6.8).

When I select the Auto-switch Mode, it appears to select, but reverts back to a 
Direct Connection.

Original comment by tarique....@gmail.com on 13 Jul 2011 at 10:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Autoswitch doesn't work for me with Chrome 12.0.742.112 on Windows 7 64 pro

I tryed rules like "http://192.168.0.250*", "http://192.168.0.250:5000/*", 
"*://192.168.0.250*", "*192.168.0.250*" all willcard (tryed with regex too)

Even with a entry in my host for the IP adress, and rules with the domain name 
added it still doesn't works.

Manual switch works fine.

Original comment by sebastie...@gmail.com on 21 Jul 2011 at 1:33

GoogleCodeExporter commented 9 years ago
Same here.  Doesn't work.  It's funny that it worked for me before on another 
machine.

Original comment by HaiD...@gmail.com on 21 Jul 2011 at 6:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same here. It doesn't work. Chrome 12.0.742.112 Windows 7 pro.

Original comment by a...@malogulko.ru on 4 Aug 2011 at 2:47

GoogleCodeExporter commented 9 years ago
Same here. On Win7, Chrome 13.0.782.107 doesn't work autoswitching.

Original comment by slam...@gmail.com on 10 Aug 2011 at 8:32

GoogleCodeExporter commented 9 years ago
Doesn't work for me as well, Win7, Chrome 13.0.782.112 beta-m.
This needs to be fixed, it's the best feature of this extension.

Original comment by iveri...@gmail.com on 10 Aug 2011 at 11:14

GoogleCodeExporter commented 9 years ago
Same problem, openSUSE 11.3, Crome 13.0.782.112 beta.

Original comment by jca.vib...@gmail.com on 11 Aug 2011 at 2:04

GoogleCodeExporter commented 9 years ago
14.0.835.35 beta, same problem.

Original comment by jca.vib...@gmail.com on 12 Aug 2011 at 12:33

GoogleCodeExporter commented 9 years ago
chrome 13.0.782.112, windows 7, T400s doesn't work, but work on T410, with same 
win/chrome configuration.

Original comment by gaochongnan@gmail.com on 16 Aug 2011 at 1:02

GoogleCodeExporter commented 9 years ago
chrome 13.0.782.112,Ubuntu 10.04,G460,doesn't work.

Original comment by dadongk...@gmail.com on 17 Sep 2011 at 2:48

GoogleCodeExporter commented 9 years ago
Same problem on Chrome 14.0.835.163m, Windows.

Original comment by kona...@gmail.com on 20 Sep 2011 at 4:00

GoogleCodeExporter commented 9 years ago
Same issue on Chrome 14.0.835.163 on Linux ( Ubuntu )

Original comment by richard....@gmail.com on 20 Sep 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Switchy Sharp seems to work properly: 
https://chrome.google.com/webstore/detail/dpplabbmogkhghncfbfdeeokoefdjegm

Original comment by je...@exoweb.net on 21 Sep 2011 at 1:56

GoogleCodeExporter commented 9 years ago
Doesn't seem to be working for me either.. 

Original comment by tom.baby...@googlemail.com on 30 Sep 2011 at 10:13

GoogleCodeExporter commented 9 years ago
I've same problem on Chrome 14.0.835.186 m on Windows XP Professional.

Original comment by brunooli...@gmail.com on 30 Sep 2011 at 5:11

GoogleCodeExporter commented 9 years ago
I have the same problem on Chrome 14.0.835.187 m on Windows 7 Home Premium.

Original comment by Owen.Bar...@gmail.com on 3 Oct 2011 at 9:28

GoogleCodeExporter commented 9 years ago
same issue on Chrome Dev 16.0.904.0 on windows

Original comment by zhangche...@gmail.com on 11 Oct 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Same issue Chrome 14.0.835.202 debian

Original comment by antoniom...@gmail.com on 11 Oct 2011 at 8:43

GoogleCodeExporter commented 9 years ago
with  
"file://C:/Documents and Settings/Administrator/Local Settings/Application 
Data/Google/Chrome/User 
Data/Default/Extensions/caehdcpeofiiigpdhbabniblemipncjj/SwitchyAuto.pac", 

this one does work!! 

thanks

Original comment by carlma2...@gmail.com on 13 Oct 2011 at 9:29

GoogleCodeExporter commented 9 years ago
Same issue. Chrome 14.0.835.202, MacOS X 10.6.8. I switched to the extension 
'SwitchySharp', which appears to be a fork of Switchy. Auto Switch Mode works 
perfectly for me in SwitchySharp.

Original comment by mike.sco...@gmail.com on 24 Oct 2011 at 3:17

GoogleCodeExporter commented 9 years ago
auto switch mode doesn't work on chrome 15.0.874.121(windows7 32 pro)

Original comment by littledr...@gmail.com on 24 Nov 2011 at 6:59

GoogleCodeExporter commented 9 years ago
Auto switch isn't working on chrome 15.0.874.121 m (windows7 64bit)

Original comment by humanpri...@gmail.com on 2 Dec 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Auto switch isn't working on chrome 15.0.874.121 m (windows7 64bit)

Original comment by humanpri...@gmail.com on 2 Dec 2011 at 1:52

GoogleCodeExporter commented 9 years ago
Auto switch isn't working on chrome 16.0.912.63 (Mac OS X 10.6.8)

Original comment by weilo...@gmail.com on 28 Dec 2011 at 9:35

GoogleCodeExporter commented 9 years ago
Same as others here. Indicates a correct switch but direct connect instead. 
chromium 16.0.912.63 on Linux 64

Original comment by ivan.d...@gmail.com on 12 Jan 2012 at 9:56

GoogleCodeExporter commented 9 years ago
Same here. 
Worked fine until restarted chrome.
Afterwards no proxy connections with any of the switches (even new ones and 
even with new profiles...).
Indicator on upper right shows a correct recognition of the patterns, but does 
direct connections. 
When directly selecting Profile it works fine.

Original comment by m...@daniel-sommer.com on 20 Jan 2012 at 11:20

GoogleCodeExporter commented 9 years ago
Not sure if this helps but I have just exported the PAC file and view the 
contents - I should have one DIRECT and 2 proxy(ed) entryies, however I am 
getting 3 DIRECT entries

Original comment by adrian.n...@uk.ibm.com on 24 Jan 2012 at 2:57

GoogleCodeExporter commented 9 years ago
This also seems not to be working for chrome 16.0.912.75 on Mac. Same problem, 
the switch indicates it works but always falls back to direct silently.

Original comment by SuperDup...@gmail.com on 24 Jan 2012 at 11:49

GoogleCodeExporter commented 9 years ago
Same here on Windows xp Sp3 for Chrome 16.0.912.75 m

Original comment by dlisi...@gmail.com on 25 Jan 2012 at 3:19

GoogleCodeExporter commented 9 years ago
If you guys haven't noticed by now, Switchy hasn't been updated since July 
2010.  It's abandonware.  Just use Proxy SwitchySharp, which is a fork of this 
codebase and was last updated in October.  And in which the auto-switch rules 
work.  
https://chrome.google.com/webstore/detail/dpplabbmogkhghncfbfdeeokoefdjegm.  

Original comment by ronaldsc...@gmail.com on 25 Jan 2012 at 4:26

GoogleCodeExporter commented 9 years ago
"And in which the auto-switch rules work."
Nope.

Original comment by chhe...@gmail.com on 24 Jul 2012 at 9:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
>> "And in which the auto-switch rules work."
>> Nope.
It works with some bugs. For example "*" at the begining of the regexp doesn't 
work

Original comment by workshop...@gmail.com on 19 Feb 2013 at 4:21

GoogleCodeExporter commented 9 years ago
it does not work for me,
when I check the system setting, I found this:
file://C:/Users/username/AppData/Local/Google/Chrome/User%20Data/Default/Extensi
ons/caehdcpeofiiigpdhbabniblemipncjj/SwitchyAuto.pacc?1363666430867

but SwitchyAuto.pacc does not exist on my file system, instead, there is a file 
named SwitchyAuto.pac

so I make a copy of SwitchyAuto.pac and give it a name as SwitchyAuto.pacc, 
then it works fine.

Original comment by sy...@forevertrusts.com on 19 Mar 2013 at 4:17

GoogleCodeExporter commented 9 years ago
Also not working. Maybe a fix soon?

Original comment by markusfr...@googlemail.com on 22 Apr 2013 at 8:28

GoogleCodeExporter commented 9 years ago
Same. It recognize the rule, but not applyes proxy.

Original comment by UglyHobg...@gmail.com on 5 May 2013 at 11:59

GoogleCodeExporter commented 9 years ago
Creating a hard link between the two files SwitchyAuto.pacc and SwitchyAuto.pac 
works.

Go to this folder:
C:/Users/<folder>/AppData/Local/Google/Chrome/User%20Data/Default/Extensions/cae
hdcpeofiiigpdhbabniblemipncjj/

Run this command:
mklink /H SwitchyAuto.pacc SwitchyAuto.pac

This solution is based on comment #40.

Original comment by jsb...@gmail.com on 19 Jun 2013 at 6:58