[ticket/11613] Add localhost to condition

PHPBB3-11613