Skip to content

Commit

Permalink
Disable mDNS in config
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Apr 21, 2022
1 parent 33bcaf3 commit ce029d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ func setupConfig(cfg *config.Config) {
cfg.Gateway.HTTPHeaders["Access-Control-Allow-Headers"] = []string{"X-IPFS-Pin"}
cfg.Gateway.HTTPHeaders["Access-Control-Expose-Headers"] = []string{"IPFS-Hash", "X-IPFS-Path", "X-IPNS-Path", "Etag"}
cfg.Gateway.HTTPHeaders["Access-Control-Max-Age"] = []string{"86400"}

if runtime.GOOS == "android" {
// Disable mDNS because it's manually started
cfg.Discovery.MDNS.Enabled = false
}
}

func createRepo(path string) error {
Expand Down

0 comments on commit ce029d6

Please sign in to comment.