gomatrixserverlib icon indicating copy to clipboard operation
gomatrixserverlib copied to clipboard

LookupWellKnown doesn't specify user agent

Open phol opened this issue 4 years ago • 3 comments

Background information

  • Dendrite version or git SHA: v0.3.5
  • Monolith or Polylith?: Monolith
  • SQLite3 or Postgres?: postgres
  • Running in Docker?: no
  • go version: go1.15.2 linux/amd64

Description

Right now, Dendrite identifies itself with the User-Agent string Go-http-client/2.0. This should be something like Dendrite/0.3.5, just as Synapse does.

Steps to reproduce

  • Tail your web server access logs for /.well-known/matrix/server
  • Dendrite identifies itself as Go-http-client/2.0
  • Synapse identifies itself as Synapse/1.24.0

phol avatar Jan 13 '21 10:01 phol

Note that this only applies to .well-known requests, not federation requests in general.

tulir avatar Jan 13 '21 10:01 tulir

I was going to say, I thought we did as per https://github.com/matrix-org/dendrite/blob/v0.3.8/setup/base.go#L313

kegsay avatar Jan 29 '21 09:01 kegsay

Well-known requests are exempt from that because LookupWellKnown in gmsl doesn't use the Client or FederationClient from setup.

Moving this issue to the gmsl repo.

neilalexander avatar Feb 04 '21 11:02 neilalexander