From 42d9771ba0c2e3491025e24956c995a7db56372c Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Sun, 11 Jan 2015 03:01:37 -0600 Subject: fuck if I know. I was just going to add the gateway. >_> --- nocompile/libexec/gopherd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nocompile/libexec/gopherd.sh') diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh index d710f80..78509dc 100755 --- a/nocompile/libexec/gopherd.sh +++ b/nocompile/libexec/gopherd.sh @@ -10,6 +10,7 @@ # "export hostname" down there. export PATH=$PATH:/usr/local/bin read -t 10 req +logger -t gopher "$(/usr/local/libexec/peerip|head -n1): ${req}" base="$1" arg=$(echo "$req" | tr -d '\r' | cut -f2) #req=$(echo "$req" | unescape | tr -d '\r' | cut -f1) @@ -33,14 +34,14 @@ else printf "" # echo "fucked off #1" # echo "$myIP != $(gethostbyname $hostname 6)" -# logger "hostname (${hostname}) and IP (${myIP}) aren't matching up."; +# logger -t gopher "hostname (${hostname}) and IP (${myIP}) aren't matching up."; # exit 2 #jimmy cracked corn but nobody gives a shit. fi else if [ $(gethostbyname $hostname) != ${myIP} ];then echo "fucked off #2" - logger "hostname (${hostname}) and IP (${myIP}) aren't matching up."; + logger -t gopher "hostname (${hostname}) and IP (${myIP}) aren't matching up."; exit 2 fi fi -- cgit v1.2.3