Fix rest reindex test for IPv4 addresses (#37310)
Fix rest reindex test for IPv4 addresses (#37310)

Some of our CI boxes end up giving out an IPv4 address for this
test. This commit allows both v4 and v6 addresses to be used.

HonzaKral/elasticsearch,scorpionvicky/elasticsearch,robin13/elasticsearch,GlenRSmith/elasticsearch,robin13/elasticsearch,coding0011/elasticsearch,coding0011/elasticsearch,gingerwizard/elasticsearch,HonzaKral/elasticsearch,gingerwizard/elasticsearch,uschindler/elasticsearch,robin13/elasticsearch,coding0011/elasticsearch,uschindler/elasticsearch,coding0011/elasticsearch,GlenRSmith/elasticsearch,uschindler/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,HonzaKral/elasticsearch,robin13/elasticsearch,nknize/elasticsearch,nknize/elasticsearch,robin13/elasticsearch,uschindler/elasticsearch,GlenRSmith/elasticsearch,HonzaKral/elasticsearch,uschindler/elasticsearch,GlenRSmith/elasticsearch,coding0011/elasticsearch,gingerwizard/elasticsearch,scorpionvicky/elasticsearch,scorpionvicky/elasticsearch,nknize/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,nknize/elasticsearch,nknize/elasticsearch,scorpionvicky/elasticsearch,gingerwizard/elasticsearch