NetworkURL based on hostname

pull/32/merge
Paulo Truta 2023-06-04 23:19:34 +02:00
parent 284acb18a4
commit e009c1f55d
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/joho/godotenv"
"github.com/edgebox-iot/edgeboxctl/internal/system"
"github.com/edgebox-iot/edgeboxctl/internal/utils"
)
@ -97,7 +98,7 @@ func GetEdgeApp(ID string) MaybeEdgeApp {
Status: GetEdgeAppStatus(ID),
Services: GetEdgeAppServices(ID),
InternetAccessible: edgeAppInternetAccessible,
NetworkURL: ID + ".edgebox.local",
NetworkURL: ID + system.GetHostname() + ".local",
InternetURL: edgeAppInternetURL,
},
Valid: true,