fix client ip checking a bit, check for it unless exliciptly not disabled