]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
location-functions.pl: Add address_has_flag() function.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 22 Sep 2020 18:25:01 +0000 (20:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Sep 2020 09:58:05 +0000 (09:58 +0000)
commitc879a194c4251be77c8a085de96e4c3e25b29d8c
tree934c0fc110df178c104c56fbe9fe348f394a2238
parentbfc251746b3944cd07ff8b5481da8ab4acbc0895
location-functions.pl: Add address_has_flag() function.

This function can be used to check if a given address has
one of the known flags like "Anonymous Proxy".

If this is true, the mapped special country code will be returned.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/location-functions.pl