gopher.sh: fix protocol default port
authorNiki Roo <niki@nikiroo.be>
Mon, 16 Apr 2018 09:05:47 +0000 (11:05 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 16 Apr 2018 09:05:47 +0000 (11:05 +0200)
gopher.sh

index 4fd277bc2cc3b551ddab79945463cff32f28af00..26f5854186661a79f3a7f2df950dc11e718108a6 100755 (executable)
--- a/gopher.sh
+++ b/gopher.sh
@@ -54,8 +54,8 @@ PORT="`echo "$PORT" | sed 's/^://'`"
 # Defaults:
 if [ "$PORT" = "" ];then
        case "$PROTOCOL" in
-       http)  PORT=80 ;;
-       https) PORT=443;;
+       http://)  PORT=80 ;;
+       https://) PORT=443;;
        *)     PORT=70 ;;
        esac
 fi