summaryrefslogtreecommitdiff
path: root/nocompile/libexec/gopherd.sh
diff options
context:
space:
mode:
authorEpoch Qwert <epoch@53flpnlls43fcguy.onion>2015-01-09 19:25:02 -0600
committerEpoch Qwert <epoch@53flpnlls43fcguy.onion>2015-01-09 19:25:02 -0600
commit3f6b64304a8a11f0505e91681384327696983928 (patch)
tree77cffccf8ad8901b844334a0c068ac951e93d6a8 /nocompile/libexec/gopherd.sh
parente23c6287bb1124397c126c83cc73fed17fda998f (diff)
downloadmisc-3f6b64304a8a11f0505e91681384327696983928.tar.gz
misc-3f6b64304a8a11f0505e91681384327696983928.zip
XuntilY.awk is actually a shell script, but mostly written in awk to make XuntilY easier to use for people without Perl
gopherd.sh... I don't remember the change. music.c is to practice reading music. sockip is to get the IP of the listening socket, like if ran from inetd
Diffstat (limited to 'nocompile/libexec/gopherd.sh')
-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 3b44296..d710f80 100755
--- a/nocompile/libexec/gopherd.sh
+++ b/nocompile/libexec/gopherd.sh
@@ -22,7 +22,8 @@ if grep -v "^${base}" <<< "${realpath}" > /dev/null;then
echo -e 'ierror!!! cant find base in realpath\tasdf\tasdf\tasdf\r'
exit 1
fi
-myIP=$(hop0 $(/usr/local/libexec/peerip | head -n1) | cut -d% -f1)
+#myIP=$(hop0 $(/usr/local/libexec/peerip | head -n1) | cut -d% -f1)
+myIP=$(/usr/local/libexec/sockip | head -n1 | cut -d% -f1)
hostname=$(rdns ${myIP})
if [ ! "${hostname}" ]; then
hostname=${myIP}