Skip to content

Commit

Permalink
Revert "Publish as mDNS service"
Browse files Browse the repository at this point in the history
This reverts commit 7db2d02.
  • Loading branch information
andig committed Mar 5, 2024
1 parent 0414279 commit 49716d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 49716d9

Please sign in to comment.