Allow connection query of both peer and local addresses

Change-Id: I2f491c2e53e3cb745c8be6f3143a382f3edb6397
Signed-off-by: Or Kehati <ork@mellanox.com>