Publish as mDNS service
This commit is contained in:
parent
c4874c17da
commit
7db2d02b5d
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue