MT#6335 loosen the check for allowed_ips_grp pref value.

(cherry picked from commit fac80cb1314671317c4ae41e223d9bb3f5331333)