From 48b28c32c34e7c8a6137910ba3417183c95e7b34 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Mon, 30 Jul 2018 17:34:37 +0100 Subject: added more info to log of cgi --- gosher | 2 +- gosher.8 | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gosher b/gosher index e896ae6..471155e 100755 --- a/gosher +++ b/gosher @@ -205,7 +205,7 @@ EOF serve_cgi(){ script_name=$( echo "$1" | sed -r 's:^/+::') query_string="$2" - echo "script_name: ${script_name}" >&2 + echo "serving script_name: ${script_name} with query_string: ${query_string}" >&2 GATEWAY_INTERFACE="CGI/1.1" PATH_INFO="${script_name}" PATH_TRANSLATED="${script_name}" diff --git a/gosher.8 b/gosher.8 index 138fa45..45124e0 100644 --- a/gosher.8 +++ b/gosher.8 @@ -7,7 +7,7 @@ .Nd a Gopher server in a shell script .Sh SYNOPSIS .Nm gosher -.Op Ar PORT Op Ar GOPHERDIR +.Op Ar GOPHERDIR Op Ar HOSTNAME Op Ar PORT .Sh DESCRIPTION .Pp .Ic gosher @@ -23,7 +23,9 @@ protocol has assigned port 70 by IANA. .Ic gosher uses .Em netcat(1) -to listen for incoming connections on the specified +to listen for incoming connections on the specified +.Ar HOSTNAME +(defaults to 'localhost' if not specified) and .Ar PORT (defaults to 70 if .Ar PORT -- cgit v1.2.3