]> jfr.im git - irc/ircd-hybrid/bopm.git/commitdiff
scan.c: Moved Cisco up in hash table so that it is tried before wingate,
authorstrtok <redacted>
Tue, 26 Feb 2002 05:07:44 +0000 (05:07 +0000)
committerstrtok <redacted>
Tue, 26 Feb 2002 05:07:44 +0000 (05:07 +0000)
because cisco routers only allow 4 connections at once (pointed out by JPayne)

scan.c

diff --git a/scan.c b/scan.c
index 3f7e4afa520584d4e58facbe4adccdd20c31a35e..11c74f499a8924072164e3042b372411af289835 100644 (file)
--- a/scan.c
+++ b/scan.c
@@ -73,6 +73,11 @@ unsigned int FD_USE = 0;                 /* Keep track of numbers of open FD's,
 
 /*    Protocol Name, Port, Write Handler, Read Handler */ 
 
+/*
+ *    Always scan Cisco before Wingate, because cisco routers
+ *    only allow 4 connects at once.
+ */
+
 protocol_hash SCAN_PROTOCOLS[] = {
 
        {"HTTP"      , 8080, &(scan_w_squid),    0 ,0 },
@@ -80,8 +85,8 @@ protocol_hash SCAN_PROTOCOLS[] = {
        {"HTTP"      ,   80, &(scan_w_squid),    0 ,0 },
        {"Socks4"    , 1080, &(scan_w_socks4),   0 ,0 },
        {"Socks5"    , 1080, &(scan_w_socks5),   0 ,0 },
+       {"Cisco"     ,   23, &(scan_w_cisco),    0 ,0 },
        {"Wingate"   ,   23, &(scan_w_wingate),  0 ,0 },
-       {"Cisco"     ,   23, &(scan_w_cisco),    0 ,0 }
 };
 
 size_t SCAN_NUMPROTOCOLS;