Revert "Publish as mDNS service"

This reverts commit 7db2d02b5d.
This commit is contained in:
andig 2024-03-05 11:22:23 +01:00
parent 041427928b
commit 49716d9abe

View file

@ -540,7 +540,9 @@ func configureHEMS(conf config.Typed, site *core.Site, httpd *server.HTTPd) erro
// setup MDNS
func configureMDNS(conf networkConfig) error {
zc, err := zeroconf.Register("evcc", "_http._tcp", "local.", conf.Port, []string{"path=/"}, nil)
host := strings.TrimSuffix(conf.Host, ".local")
zc, err := zeroconf.RegisterProxy("EV Charge Controller", "_http._tcp", "local.", conf.Port, host, nil, []string{}, nil)
if err != nil {
return fmt.Errorf("mDNS announcement: %w", err)
}