summaryrefslogtreecommitdiff
path: root/filebrowser
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-02-02 02:41:28 -0600
committerepoch <epoch@hacking.allowed.org>2017-02-02 02:41:28 -0600
commit242c5e6e480b5edccf2d7a4b55561a65399007f0 (patch)
treecdfdad4c56c3cfbfdfd246b56a56c194f828bc98 /filebrowser
parent5919fcaaf92afcf75e11f1f059f2cdf2b01044ee (diff)
downloadhackvr-242c5e6e480b5edccf2d7a4b55561a65399007f0.tar.gz
hackvr-242c5e6e480b5edccf2d7a4b55561a65399007f0.zip
fixed up a bit of gopher stuff. default server set to hostname instead of internal IP.
Diffstat (limited to 'filebrowser')
-rwxr-xr-xfilebrowser/backend-gopher.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/filebrowser/backend-gopher.sh b/filebrowser/backend-gopher.sh
index 69e1bbe..288e228 100755
--- a/filebrowser/backend-gopher.sh
+++ b/filebrowser/backend-gopher.sh
@@ -3,12 +3,13 @@
#wait for a selection on stdin
#cd or start that file
#repeat.
-server=192.168.0.2
+server=gopher.hacking.allowed.org
port=70
selection=/
while true;do
#not sure why this needs to be printed to show up every time.
- printf '%s\n' "$selection" | ncat "$server" "$port"
+ printf '%s\n' "$selection" | ncat "$server" "$port" | tee /dev/stderr | grep -v ^i | cut -f2
+### need to ask user for input in the form of a pop-up window if the selected target was of type 7
read -r selection
echo
done