slitaz-forge rev 695

ns.slitaz.org: proxy support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 27 11:29:08 2018 +0200 (2018-04-27)
parents 097fcf4c4171
children 2f42ab2912be
files ns/web/index.cgi
line diff
     1.1 --- a/ns/web/index.cgi	Wed Feb 21 21:15:08 2018 +0200
     1.2 +++ b/ns/web/index.cgi	Fri Apr 27 11:29:08 2018 +0200
     1.3 @@ -5,6 +5,7 @@
     1.4  
     1.5  OWNERFILE=name.users
     1.6  ip="$(GET ip)"
     1.7 +[ "$ip" ] || ip=$HTTP_X_FORWARDED_FOR
     1.8  [ "$ip" ] || ip=$REMOTE_ADDR
     1.9  name="$(GET name)"
    1.10  name="${name%.by.slitaz.org}"