X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;ds=sidebyside;f=globals.sh;h=402cba23f3f33a56508c4b0bf398cca43471971e;hb=5b144c02682c833344dbe71c55b7dc53f63ef45d;hp=b68a8c9e977a803cc0b22868da2d5b8b6054d67a;hpb=b3db7c81d8a072f32454612696c367dbcd301529;p=serve0 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