From: Niki Roo Date: Mon, 16 Apr 2018 09:05:47 +0000 (+0200) Subject: gopher.sh: fix protocol default port X-Git-Url: http://git.nikiroo.be/?p=gofetch.git;a=commitdiff_plain;h=8adaaf0f638121f0d8a0d63b67353ccec2d2ee29 gopher.sh: fix protocol default port --- 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