Network: allow configuring external url (BC) (#25285)

This commit is contained in:
andig 2025-11-14 17:32:48 +01:00 • committed by GitHub
parent bb61acc99c
commit b535d2ed07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 195 additions and 126 deletions

View file

@ -261,13 +261,13 @@ func runRoot(cmd *cobra.Command, args []string) {
}
// announce on mDNS
if err == nil && strings.HasSuffix(conf.Network.Host, ".local") {
if err == nil {
err = configureMDNS(conf.Network)
}
// start SHM server
if err == nil {
err = wrapErrorWithClass(ClassSHM, configureSHM(&conf.SHM, site, httpd))
err = wrapErrorWithClass(ClassSHM, configureSHM(&conf.SHM, conf.Network.ExternalURL(), site, httpd))
}
// start HEMS server