X-Git-Url: http://git.plutz.net/?p=serve0;a=blobdiff_plain;f=globals.sh;h=402cba23f3f33a56508c4b0bf398cca43471971e;hp=b68a8c9e977a803cc0b22868da2d5b8b6054d67a;hb=c59fd5a4946c4d13fc1692e4561878a9bb2b3e17;hpb=228ce4d69eee3b68047a610fc907a0ec05ebc19a diff --git a/globals.sh b/globals.sh index b68a8c9..402cba2 100755 --- a/globals.sh +++ b/globals.sh @@ -1,6 +1,6 @@ #!/bin/zsh -# Copyright 2014,2015 Paul Hänsch +# Copyright 2014 - 2017 Paul Hänsch # # This file is part of Serve0. # @@ -30,3 +30,6 @@ _GET[pn]=$(validate "${_GET[pn]}" '[1-9][0-9]*' 1) cgi_cookie _COOKIE[pagesize]=$(validate "${_COOKIE[pagesize]}" '[1-9][0-9]*' 50) + +[ -z "$RHOST" ] && RHOST=localhost +[ -z "$RPORT" ] && RPORT=80