fixed redirect loop when checking ip address

Signed-off-by:Matthew Scaperoth <mscapero@gwu.edu>