t* gopherproxy-c customized URI git clone git://git.codevoid.de/gopherproxy-c-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 2188db7bb8e13eb43c8e61376baf0381be3af513 DIR parent ba4a6bfff30969bbea9529f7852cd4b929421fbe URI Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 16:00:45 +0200 handle telnet and tn3270 types Diffstat: M gopherproxy.c | 13 +++++++++++++ 1 file changed, 13 insertions(+), 0 deletions(-) --- DIR diff --git a/gopherproxy.c b/gopherproxy.c t@@ -329,6 +329,19 @@ servedir(const char *server, const char *port, const char *path, const char *par "\" name=\"p\" value=\"\" size=\"72\" />" "<input type=\"submit\" value=\"Search\" /></pre></form><pre>", stdout); break; + case '8': /* telnet */ + case 'T': /* tn3270 */ + fputs(typestr(v._type), stdout); + printf(" <a href=\"%s://", v._type == '8' ? "telnet" : "tn3270"); + xmlencode(v.path); + fputs("@", stdout); + xmlencode(v.server); + fputs(":", stdout); + xmlencode(v.port); + fputs("\">", stdout); + xmlencode(v.username); + fputs("</a>", stdout); + break; default: /* other */ fputs(typestr(v._type), stdout); fputs(" <a href=\"", stdout);