dot

packages and services management
Log | Files | Refs | README

commit 730712bde7a45951bd88b3040ee8d05973e57888
parent 331bbbaee8d283e9680664f09fddeab5c48b3a85
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 13 Feb 2018 22:04:48 +0100

[fix] handle awk arguments

Diffstat:
Mbin/gopher-proxy | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/gopher-proxy b/bin/gopher-proxy @@ -4,6 +4,11 @@ # /etc/inetd.conf: # gopher-proxy stream tcp nowait root /.../gopher-proxy gopher-proxy host +BEGIN { + LOCALHOST = ARGV[1]; + ARGC = 0; +} + { sub("^GET /(gopher://)?", ""); sub(" HTTP/[0-9].*$", ""); gsub(" ", "%20");