]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei-mirror.t
tests: favor IPv6
[public-inbox.git] / t / lei-mirror.t
index 667284fd5bb39b469ed283f7ab0ed842dc173f8e..e3707979d8d16d19fb41f32f7836c38f9e0b603f 100644 (file)
@@ -6,7 +6,7 @@ require_git 2.6;
 require_mods(qw(DBD::SQLite Search::Xapian));
 my $sock = tcp_server();
 my ($tmpdir, $for_destroy) = tmpdir();
-my $http = 'http://'.$sock->sockhost.':'.$sock->sockport.'/';
+my $http = 'http://'.tcp_host_port($sock);
 my ($ro_home, $cfg_path) = setup_public_inboxes;
 my $cmd = [ qw(-httpd -W0), "--stdout=$tmpdir/out", "--stderr=$tmpdir/err" ];
 my $td = start_script($cmd, { PI_CONFIG => $cfg_path }, { 3 => $sock });