This commit is contained in:
Andras Bacsai
2024-09-23 20:31:50 +02:00
parent 573e5c4913
commit 2841675691
4 changed files with 39 additions and 18 deletions

View File

@@ -1247,6 +1247,10 @@ function get_public_ips()
}
$settings->update(['public_ipv4' => $ipv4]);
}
} catch (\Exception $e) {
echo "Error: {$e->getMessage()}\n";
}
try {
$ipv6 = $second->output();
if ($ipv6) {
$ipv6 = trim($ipv6);