Ensure isRequestByLanIP() detects localhost correctly