tests: Fix using numeric IPv6 addresses
Port to ejabberd 13.10