diff options
author | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-11-27 03:10:16 -0600 |
---|---|---|
committer | Epoch Qwert <epoch@53flpnlls43fcguy.onion> | 2014-11-27 03:10:16 -0600 |
commit | 59bcef5c27540527fc4ca1007e9cfea5783ba233 (patch) | |
tree | 583c651dcd7d6fff34db26805b4606fa45a90aac /nocompile/libexec | |
parent | 8b1c2f7e40f9c7ae77d3afb9f3eec21886c8f060 (diff) | |
download | misc-59bcef5c27540527fc4ca1007e9cfea5783ba233.tar.gz misc-59bcef5c27540527fc4ca1007e9cfea5783ba233.zip |
updated httpd.c to use different dirs for sites and vhosts
updated gopherd.sh to use the new rdns script
rdns script just wraps dig -x and outputs a real hostname instead of one ending with a '.'
rebuild.sh got a cd added to the top so it can be run from somewhere else
mime-type got an error line commented out.
Diffstat (limited to 'nocompile/libexec')
-rwxr-xr-x | nocompile/libexec/gopherd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh index 768d02b..0b87223 100755 --- a/nocompile/libexec/gopherd.sh +++ b/nocompile/libexec/gopherd.sh @@ -10,7 +10,7 @@ if grep -v "^${base}" <<< "${realpath}" > /dev/null;then exit 1 fi myIP=$(/usr/local/bin/hop0 $(/usr/local/libexec/peerip)) -hostname=$(dig -x ${myIP} +short | head -n1 | rev | tail -c+2 | rev ) +hostname=$(rdns ${myIP}) if [ ! "${hostname}" ]; then hostname=${myIP} else |