Fix hostname check.