switchysharp icon indicating copy to clipboard operation
switchysharp copied to clipboard

Allow rules Source Network based

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

It would be great if you could base the proxy decision based on PC IP instead 
of just destination URL.  That way, when I am at home it knows to direct 
connect, if I am at work it can use a proxy and if on VPN it can use different 
one as well.

Do you urgently need this enhancement?
Urgency: High (for me), probably Low for everyone else


Do you think this enhancement is important to the project?
Importance: High

Original issue reported on code.google.com by [email protected] on 30 Apr 2014 at 10:45

GoogleCodeExporter avatar Mar 15 '15 06:03 GoogleCodeExporter

This should be possible through the "myIpAddress" function in PAC scripts. 
However, I'm not sure if the local ip address can also be determined in 
chromium extensions. In other words, this can be implemented, but the display 
(like the color of the icon) can be incorrect on the extension interface.
I will further investigate about this problem later.

Another concern would be NATs, which are very likely to be employed when you 
are behind routers at home or at work. "My ip" won't make much sense in these 
environments. And what about mixed IPv4/IPv6 connections? Things can become 
unreasonably complex.

Anyway, before this feature is added, you can just switch back and forth 
between profiles. And it won't be that cumbersome when you are using 2.0 alpha, 
which allows multiple "auto switch" profiles.

I will comment here if there are any news on this topic later.

Original comment by [email protected] on 1 May 2014 at 6:08

GoogleCodeExporter avatar Mar 15 '15 06:03 GoogleCodeExporter