fix: use hostname like the python code does

This commit is contained in:
frederik
2024-03-12 21:44:29 +01:00
parent a5e88f9c77
commit b7225ca1d2
+1 -1
View File
@@ -281,7 +281,7 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
if($config["BIRDNETPI_URL"] != "") {
$filename = $config["BIRDNETPI_URL"]."?filename=".$filename;
} else{
$filename = "http://birdnetpi.local/"."?filename=".$filename;
$filename = "http://".$_SERVER['SERVER_NAME']."/"."?filename=".$filename;
}
$attach="";