From 8adaaf0f638121f0d8a0d63b67353ccec2d2ee29 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 16 Apr 2018 11:05:47 +0200 Subject: [PATCH] gopher.sh: fix protocol default port --- gopher.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gopher.sh b/gopher.sh index 4fd277b..26f5854 100755 --- 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 -- 2.27.0