this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix ordering error on Server header check args

+1 -1
+1 -1
cmd/relay/relay/slurper.go
··· 333 333 334 334 // check if we connected to a relay (eg, this indigo relay, or rainbow) and drop if so 335 335 serverHdr := resp.Header.Get("Server") 336 - if strings.Contains("atproto-relay", serverHdr) { 336 + if strings.Contains(serverHdr, "atproto-relay") { 337 337 s.logger.Warn("subscribed host is atproto relay of some kind, banning", "server", serverHdr, "url", u, "hostname", sub.Hostname) 338 338 if err := s.Config.PersistHostStatusCallback(ctx, sub.HostID, models.HostStatusBanned); err != nil { 339 339 s.logger.Error("failed mark host as banned", "hostname", sub.Hostname, "err", err)