]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
check firewalls before foo_proxy
authorwessels <>
Sat, 1 Feb 1997 04:34:53 +0000 (04:34 +0000)
committerwessels <>
Sat, 1 Feb 1997 04:34:53 +0000 (04:34 +0000)
src/ssl.cc
src/tunnel.cc

index e46313cf6412c0a6a15d6a3a42b409550bf4e607..a948d1e46e12f553a04fe71193da8c3e92742453 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ssl.cc,v 1.32 1997/01/21 16:42:04 wessels Exp $
+ * $Id: ssl.cc,v 1.33 1997/01/31 21:34:53 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
@@ -492,12 +492,12 @@ sslSelectNeighbor(int fd, const ipcache_addrs * ia, void *data)
     int fw_ip_match = IP_ALLOW;
     if (ia && Config.firewall_ip_list)
        fw_ip_match = ip_access_check(ia->in_addrs[ia->cur], Config.firewall_ip_list);
-    if ((e = Config.sslProxy)) {
-       hierarchyNote(request, HIER_SSL_PARENT, 0, e->host);
-    } else if (matchInsideFirewall(request->host)) {
+    if (matchInsideFirewall(request->host)) {
        hierarchyNote(request, HIER_DIRECT, 0, request->host);
     } else if (fw_ip_match == IP_DENY) {
        hierarchyNote(request, HIER_DIRECT, 0, request->host);
+    } else if ((e = Config.sslProxy)) {
+       hierarchyNote(request, HIER_SSL_PARENT, 0, e->host);
     } else if ((e = getDefaultParent(request))) {
        hierarchyNote(request, HIER_DEFAULT_PARENT, 0, e->host);
     } else if ((e = getSingleParent(request))) {
index b52cd51f059e717d77e61fb55548a6f1caf93fe0..9a8377ee5b83edba9542d61b4d4f0f73356d0257 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tunnel.cc,v 1.32 1997/01/21 16:42:04 wessels Exp $
+ * $Id: tunnel.cc,v 1.33 1997/01/31 21:34:53 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
@@ -492,12 +492,12 @@ sslSelectNeighbor(int fd, const ipcache_addrs * ia, void *data)
     int fw_ip_match = IP_ALLOW;
     if (ia && Config.firewall_ip_list)
        fw_ip_match = ip_access_check(ia->in_addrs[ia->cur], Config.firewall_ip_list);
-    if ((e = Config.sslProxy)) {
-       hierarchyNote(request, HIER_SSL_PARENT, 0, e->host);
-    } else if (matchInsideFirewall(request->host)) {
+    if (matchInsideFirewall(request->host)) {
        hierarchyNote(request, HIER_DIRECT, 0, request->host);
     } else if (fw_ip_match == IP_DENY) {
        hierarchyNote(request, HIER_DIRECT, 0, request->host);
+    } else if ((e = Config.sslProxy)) {
+       hierarchyNote(request, HIER_SSL_PARENT, 0, e->host);
     } else if ((e = getDefaultParent(request))) {
        hierarchyNote(request, HIER_DEFAULT_PARENT, 0, e->host);
     } else if ((e = getSingleParent(request))) {