summaryrefslogtreecommitdiff
path: root/nocompile/libexec
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-12-09 03:27:26 -0600
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2014-12-09 03:27:26 -0600
commit612926651db0c13fa9f45f58764b56ab132b211c (patch)
tree1daa3f7e1379961c092bf25b4f16ba3244dcb8f1 /nocompile/libexec
parent06327cbeb735d3e8592df3ce6f8cc8a80b461787 (diff)
downloadmisc-612926651db0c13fa9f45f58764b56ab132b211c.tar.gz
misc-612926651db0c13fa9f45f58764b56ab132b211c.zip
ident.sh to make ident queries easier to use in scripts.
gopherd.sh changed to use new output of peerip. peerip changes to output peer's port on second line. httpd changed... I dunno what. AOEU and aoeu to help with playing with dvorak.
Diffstat (limited to 'nocompile/libexec')
-rwxr-xr-xnocompile/libexec/gopherd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh
index 0b87223..9d3ba5c 100755
--- a/nocompile/libexec/gopherd.sh
+++ b/nocompile/libexec/gopherd.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+export PATH=$PATH:/usr/local/bin
#set these two variables if you have your server behind DMZ
read -t 10 req
base="$1"
@@ -9,7 +10,7 @@ if grep -v "^${base}" <<< "${realpath}" > /dev/null;then
echo ${realpath}
exit 1
fi
-myIP=$(/usr/local/bin/hop0 $(/usr/local/libexec/peerip))
+myIP=$(hop0 $(/usr/local/libexec/peerip | head -n1))
hostname=$(rdns ${myIP})
if [ ! "${hostname}" ]; then
hostname=${myIP}