﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1684	documentation for ngx_http_geo_module is inconsistent with the module's behavior when the server is accessed through a unix domain socket	gdrbyKo1@…		"The documentation for ngx_http_geo_module states that ""By default, the address is taken from the $remote_addr variable[...]"", and that ""If the value of a variable does not represent a valid IP address then the “255.255.255.255” address is used.""

By this description, one could expect the following two blocks to behave exactly the same way:

{{{
geo $foo {
    255.255.255.255 0;
    default 1;
}

geo $remote_addr $bar {
    255.255.255.255 0;
    default 1;
}
}}}

but when the server is accessed through a unix domain socket, the variables $foo and $bar evaluate to two different values: 1 and 0, respectively.

Attached are a simple nginx config file and a python script which can be used to reproduce this issue."	defect	closed	minor		nginx-module	1.15.x	fixed			Linux debdeb 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux	"nginx version: nginx/1.15.7
built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
configure arguments: --with-debug --prefix=/home/ngx/built_from_source --without-http_gzip_module"
