Skip to content

v2.1.2

Compare
Choose a tag to compare
@9seconds 9seconds released this 05 Oct 08:58
· 103 commits to stable since this release

This release slightly extends an interface of mtglib.Logger, adds a new option AllowFallbackOnUnknownDC and relevant configuration option allow-fallback-on-unknown-dc.

This option defines how mtg should behave if client requests unknown DC. Each time when client establishes a connection to a proxy, it sends a number of DC that it wants to connect to. This DC defines a number of the cluster: media, messages, channels and so on. But sometimes clients may issue a number mtg knows nothing about. It may be due to the bugs (#208) or because new cluster is present but a version of mtg is old enough to know about it. Telegram works in a way that each cluster may server any request (latency is an issue though). So, if you want a media, you can ask for that from messages cluster and vice versa. You'll get a response but with poor performance.

This option defines if mtg should reject unknowns (default behaviour for running with config and inverse for simple-run) or choose any known DC for that.

What's Changed

Full Changelog: v2.1.1...v2.1.2