FelisCatus / switchysharp

Automatically exported from code.google.com/p/switchysharp
GNU General Public License v3.0
140 stars 50 forks source link

Allow rules Source Network based #936

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 declan@costello.ie on 30 Apr 2014 at 10:45

GoogleCodeExporter commented 9 years ago
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 shyc2...@gmail.com on 1 May 2014 at 6:08