From b7225ca1d27d5c0bfc8aad70bee6ba628d2c3c9c Mon Sep 17 00:00:00 2001 From: frederik Date: Tue, 12 Mar 2024 21:44:29 +0100 Subject: [PATCH] fix: use hostname like the python code does --- scripts/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.php b/scripts/config.php index a0ee022..ed18c8d 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -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="";