code cleanup localhost_match_wildcard_host

code cleanup for localhost_match_wildcard_host