diff --git a/index.php b/index.php index 42cfac9..f9df417 100644 --- a/index.php +++ b/index.php @@ -46,7 +46,7 @@ if (!empty($_POST)) { } if (in_array($_POST['backendMethod'], ['ping6', 'mtr6', 'traceroute6'])) { - if (!LookingGlass::isValidIpv6($_POST['targetHost']) || + if (!LookingGlass::isValidIpv6($_POST['targetHost']) && !$targetHost = LookingGlass::isValidHost($_POST['targetHost'],LookingGlass::IPV6) ) { exitErrorMessage('No valid IPv6 provided.');