optionally use the public address when getting the ip

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
log the fact that we were (or were not) able to match an IP to a subnet

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>