git://git.nikiroo.be
/
gofetch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e5b044
)
gopher.sh: fix protocol default port
author
Niki Roo
<niki@nikiroo.be>
Mon, 16 Apr 2018 09:05:47 +0000
(11:05 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Mon, 16 Apr 2018 09:05:47 +0000
(11:05 +0200)
gopher.sh
patch
|
blob
|
blame
|
history
diff --git
a/gopher.sh
b/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