fix: use hostname like the python code does
This commit is contained in:
+1
-1
@@ -281,7 +281,7 @@ if(isset($_GET['sendtest']) && $_GET['sendtest'] == "true") {
|
|||||||
if($config["BIRDNETPI_URL"] != "") {
|
if($config["BIRDNETPI_URL"] != "") {
|
||||||
$filename = $config["BIRDNETPI_URL"]."?filename=".$filename;
|
$filename = $config["BIRDNETPI_URL"]."?filename=".$filename;
|
||||||
} else{
|
} else{
|
||||||
$filename = "http://birdnetpi.local/"."?filename=".$filename;
|
$filename = "http://".$_SERVER['SERVER_NAME']."/"."?filename=".$filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
$attach="";
|
$attach="";
|
||||||
|
|||||||
Reference in New Issue
Block a user