Fix checking for private addresses in monitor.c