Should be &&, just like for the ipv4 equivalent above.

This commit is contained in:
Kim-Eirik Karlsen 2022-12-27 00:24:31 +01:00
parent 8267094825
commit a82b94332b
No known key found for this signature in database
GPG key ID: DDEB38C2C40B3B83

View file

@ -46,7 +46,7 @@ if (!empty($_POST)) {
} }
if (in_array($_POST['backendMethod'], ['ping6', 'mtr6', 'traceroute6'])) { 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) !$targetHost = LookingGlass::isValidHost($_POST['targetHost'],LookingGlass::IPV6)
) { ) {
exitErrorMessage('No valid IPv6 provided.'); exitErrorMessage('No valid IPv6 provided.');