Skip to content

Commit

Permalink
Merge pull request #16 from CameronRP/change-avahi-service-port
Browse files Browse the repository at this point in the history
Change avahi service to adverties on port 80.
  • Loading branch information
CameronRP authored Sep 12, 2018
2 parents 98aad31 + b9d4559 commit eaa5d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _release/cacophonator-management-avahi.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<name>cacophony</name>
<service protocol="ipv4">
<type>_cacophonator-management._tcp</type>
<port>8080</port>
<port>80</port>
</service>
</service-group>
3 changes: 3 additions & 0 deletions cmd/managementd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ func main() {
return
}
log.Printf("config: %v", config)
if config.Port != 80 {
log.Printf("warning: avahi service is advertised on port 80 but port %v is being used", config.Port)
}

router := mux.NewRouter()

Expand Down

0 comments on commit eaa5d11

Please sign in to comment.