summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkippled <kippled@c587cffe-e639-0410-9787-d7902ae8ed56>2007-11-16 17:42:51 +0000
committerkippled <kippled@c587cffe-e639-0410-9787-d7902ae8ed56>2007-11-16 17:42:51 +0000
commit0e1f6153a64353bf4b48b8716a4bbcbc6b309015 (patch)
tree7ff389df2990f230f34ff04472431b9252bfccb0
parentbe8871974d5fea987d1d02a78f3b90a1e9b71699 (diff)
downloadlibproxy-0e1f6153a64353bf4b48b8716a4bbcbc6b309015.tar.gz
Created stub for _ignore
git-svn-id: http://libproxy.googlecode.com/svn/trunk@53 c587cffe-e639-0410-9787-d7902ae8ed56
-rw-r--r--src/lib/proxy_factory.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/proxy_factory.c b/src/lib/proxy_factory.c
index 263b340..672e0ed 100644
--- a/src/lib/proxy_factory.c
+++ b/src/lib/proxy_factory.c
@@ -88,6 +88,24 @@ _format_pac_response(char *response)
return chain;
}
+static int
+_ignore (pxURL *url, char *ignore)
+{
+ // Look at envvar ignores (man wget), gnome, kde, firefox, mac osx, windows
+ // Want to support:
+ // IP -- 192.168.4.27 (glob?) including IPv6
+ // Netmask -- 192.168.4.0/24 OR 255.255.255.0
+ // hostname: -- xyz.cypress.com - exact match
+ // -- .cypress.com - ends with
+ // -- *.cypress.com - glob
+ // URL -- http://www.google.com/bunnies/ - basically a starts with
+ // -- http://www.google.com/bunnies* - globs, would match /bunnies_happy
+ // If one of these formats are supported by NONE of the configuration sources, we should drop it to avoid complexity
+
+ return 0;
+}
+
+
/**
* Creates a new pxProxyFactory instance. This instance
* and all its methods are NOT thread safe, so please take
@@ -441,6 +459,9 @@ px_proxy_factory_get_proxy (pxProxyFactory *self, char *url)
// TODO: Ignores
+ if(_ignore(realurl, config->ignore))
+ goto do_return;
+
// If we have a wpad config
if (!strcmp(config->url, "wpad://"))
{