Don't show -noipv6
when ipv6_opt
is false
This commit is contained in:
parent
92a7590846
commit
b46d064f55
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ for my $tc (@test_cases) {
|
|||
if $tc->{server_ipv} eq '6' && !$http_daemon_supports_ipv6;
|
||||
skip("HTTP::Daemon::SSL not available", 1) if $tc->{ssl} && !$has_http_daemon_ssl;
|
||||
my $uri = $httpd{$tc->{server_ipv}}{$tc->{ssl} ? 'https' : 'http'}->endpoint();
|
||||
my $name = sprintf("IPv%s client to %s (-%sipv6)",
|
||||
$tc->{client_ipv} || '*', $uri, $tc->{ipv6_opt} ? '' : 'no');
|
||||
my $name = sprintf("IPv%s client to %s%s",
|
||||
$tc->{client_ipv} || '*', $uri, $tc->{ipv6_opt} ? ' (-ipv6)' : '');
|
||||
$ddclient::globals{'ipv6'} = $tc->{ipv6_opt};
|
||||
my $got = ddclient::geturl(url => $uri, ipversion => $tc->{client_ipv});
|
||||
isnt($got // '', '', $name);
|
||||
|
|
Loading…
Reference in a new issue