Skip to content

Commit

Permalink
Publish as mDNS service
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Feb 20, 2024
1 parent c4874c1 commit 7db2d02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,7 @@ func configureHEMS(conf config.Typed, site *core.Site, httpd *server.HTTPd) erro

// setup MDNS
func configureMDNS(conf networkConfig) error {
host := strings.TrimSuffix(conf.Host, ".local")

zc, err := zeroconf.RegisterProxy("EV Charge Controller", "_http._tcp", "local.", conf.Port, host, nil, []string{}, nil)
zc, err := zeroconf.Register("evcc", "_http._tcp", "local.", conf.Port, []string{"path=/"}, nil)
if err != nil {
return fmt.Errorf("mDNS announcement: %w", err)
}
Expand Down

0 comments on commit 7db2d02

Please sign in to comment.