iGopher+ in all ways + comment on why it is done. - geomyidae - A small C-based gopherd. Err bitreich.org 70 hgit clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ URL:git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ bitreich.org 70 1Log /scm/geomyidae/log.gph bitreich.org 70 1Files /scm/geomyidae/files.gph bitreich.org 70 1Refs /scm/geomyidae/refs.gph bitreich.org 70 1Tags /scm/geomyidae/tag bitreich.org 70 1README /scm/geomyidae/file/README.gph bitreich.org 70 1LICENSE /scm/geomyidae/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit f4cac1fea572c34eaf23baef928d7aa313ae9ccf /scm/geomyidae/commit/f4cac1fea572c34eaf23baef928d7aa313ae9ccf.gph bitreich.org 70 1parent a1cdda3a103efbe3da4dfed6b2b26301d1b83757 /scm/geomyidae/commit/a1cdda3a103efbe3da4dfed6b2b26301d1b83757.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Tue, 30 Jan 2018 22:44:21 +0100 Err bitreich.org 70 i Err bitreich.org 70 iGopher+ in all ways + comment on why it is done. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M main.c | 11 +++++++++-- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 9 insertions(+), 2 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/main.c b/main.c /scm/geomyidae/file/main.c.gph bitreich.org 70 i@@ -134,8 +134,15 @@ handlerequest(int sock, char *base, char *ohost, char *port, char *clienth, Err bitreich.org 70 i if (sear != nil) { Err bitreich.org 70 i *sear++ = '\0'; Err bitreich.org 70 i Err bitreich.org 70 i- /* Gopher+ compatibility hack. */ Err bitreich.org 70 i- if (*sear == '+' || *sear == '$' || *sear == '!') { Err bitreich.org 70 i+ /* Err bitreich.org 70 i+ * This is a compatibility layer to geomyidae for users using Err bitreich.org 70 i+ * the original gopher(1) client. Gopher+ is by default Err bitreich.org 70 i+ * requesting the metadata. We are using a trick in the Err bitreich.org 70 i+ * gopher(1) parsing code to jump back to gopher compatibility Err bitreich.org 70 i+ * mode. DO NOT ADD ANY OTHER GOPHER+ SUPPORT. GOPHER+ IS Err bitreich.org 70 i+ * CRAP. Err bitreich.org 70 i+ */ Err bitreich.org 70 i+ if (*sear == '+' || *sear == '$' || *sear == '!' || *sear == '\0') { Err bitreich.org 70 i dprintf(sock, "+-2\r\n"); Err bitreich.org 70 i dprintf(sock, "+INFO: 1gopher+\t\t%s\t%s\r\n", Err bitreich.org 70 i ohost, port); Err bitreich.org 70 .