fixed detection of localhost access to enable admin interface without authentication