about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTAccess.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1997-02-09 22:44:52 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1997-02-09 22:44:52 -0500
commit6f66219647d92d2af2427d416e00e6f2a8f825dc (patch)
tree0560172642638a687023c25b3f0b3739df2bb8e5 /WWW/Library/Implementation/HTAccess.c
parent9c63ba04a5785f8ad069bf660402530617451a06 (diff)
downloadlynx-snapshots-6f66219647d92d2af2427d416e00e6f2a8f825dc.tar.gz
snapshot of project "lynx", label v2_6fm_970209
Diffstat (limited to 'WWW/Library/Implementation/HTAccess.c')
-rw-r--r--WWW/Library/Implementation/HTAccess.c37
1 files changed, 25 insertions, 12 deletions
diff --git a/WWW/Library/Implementation/HTAccess.c b/WWW/Library/Implementation/HTAccess.c
index 45eb96b8..52a18870 100644
--- a/WWW/Library/Implementation/HTAccess.c
+++ b/WWW/Library/Implementation/HTAccess.c
@@ -135,7 +135,11 @@ extern GLOBALREF (HTProtocol, HTRlogin);
 extern GLOBALREF (HTProtocol, HTFTP);
 extern GLOBALREF (HTProtocol, HTNews);
 extern GLOBALREF (HTProtocol, HTNNTP);
+extern GLOBALREF (HTProtocol, HTNewsPost);
+extern GLOBALREF (HTProtocol, HTNewsReply);
 extern GLOBALREF (HTProtocol, HTSNews);
+extern GLOBALREF (HTProtocol, HTSNewsPost);
+extern GLOBALREF (HTProtocol, HTSNewsReply);
 extern GLOBALREF (HTProtocol, HTGopher);
 extern GLOBALREF (HTProtocol, HTCSO);
 extern GLOBALREF (HTProtocol, HTFinger);
@@ -146,8 +150,9 @@ extern GLOBALREF (HTProtocol, HTWAIS);
 #else
 GLOBALREF HTProtocol HTTP, HTTPS, HTFile, HTTelnet, HTTn3270, HTRlogin;
 #ifndef DECNET
-GLOBALREF  HTProtocol HTFTP, HTNews, HTNNTP, HTSNews, HTGopher, HTCSO;
-GLOBALREF HTProtocol HTFinger;
+GLOBALREF HTProtocol HTFTP, HTNews, HTNNTP, HTNewsPost, HTNewsReply;
+GLOBALREF HTProtocol HTSNews, HTSNewsPost, HTSNewsReply;
+GLOBALREF HTProtocol HTGopher, HTCSO, HTFinger;
 #ifdef DIRECT_WAIS
 GLOBALREF  HTProtocol HTWAIS;
 #endif /* DIRECT_WAIS */
@@ -163,7 +168,11 @@ GLOBALREF  HTProtocol HTWAIS;
     HTRegisterProtocol(&HTFTP);
     HTRegisterProtocol(&HTNews);
     HTRegisterProtocol(&HTNNTP);
+    HTRegisterProtocol(&HTNewsPost);
+    HTRegisterProtocol(&HTNewsReply);
     HTRegisterProtocol(&HTSNews);
+    HTRegisterProtocol(&HTSNewsPost);
+    HTRegisterProtocol(&HTSNewsReply);
     HTRegisterProtocol(&HTGopher);
     HTRegisterProtocol(&HTCSO);
     HTRegisterProtocol(&HTFinger);
@@ -254,16 +263,20 @@ PRIVATE BOOL override_proxy ARGS1(
     } else {					/* Use default port */
         access = HTParse(addr, "", PARSE_ACCESS);
         if (access != NULL) {
-            if      (!strcmp(access, "http"))	port = 80;
-            else if (!strcmp(access, "https"))	port = 443;
-            else if (!strcmp(access, "ftp"))	port = 21;
-            else if (!strcmp(access, "gopher"))	port = 70;
-            else if (!strcmp(access, "cso"))	port = 105;
-	    else if (!strcmp(access, "news"))	port = 119;
-	    else if (!strcmp(access, "snews"))	port = 563;
-	    else if (!strcmp(access, "nntp"))	port = 119;
-	    else if (!strcmp(access, "wais"))	port = 210;
-	    else if (!strcmp(access, "finger"))	port = 79;
+            if      (!strcmp(access, "http"))		port = 80;
+            else if (!strcmp(access, "https"))		port = 443;
+            else if (!strcmp(access, "ftp"))		port = 21;
+            else if (!strcmp(access, "gopher"))		port = 70;
+            else if (!strcmp(access, "cso"))		port = 105;
+	    else if (!strcmp(access, "news"))		port = 119;
+	    else if (!strcmp(access, "nntp"))		port = 119;
+	    else if (!strcmp(access, "newspost"))	port = 119;
+	    else if (!strcmp(access, "newsreply"))	port = 119;
+	    else if (!strcmp(access, "snews"))		port = 563;
+	    else if (!strcmp(access, "snewspost"))	port = 563;
+	    else if (!strcmp(access, "snewsreply"))	port = 563;
+	    else if (!strcmp(access, "wais"))		port = 210;
+	    else if (!strcmp(access, "finger"))		port = 79;
             FREE(access);
         }
     }