mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Check homeserver hungriness if software isn't standard
This commit is contained in:
parent
e3bb03b476
commit
8a069bfe74
1 changed files with 4 additions and 1 deletions
|
|
@ -251,7 +251,10 @@ func (br *Bridge) ensureConnection() {
|
|||
time.Sleep(10 * time.Second)
|
||||
continue
|
||||
}
|
||||
if !versions.ContainsGreaterOrEqual(MinSpecVersion) {
|
||||
if br.Config.Homeserver.Software == bridgeconfig.SoftwareHungry && !versions.UnstableFeatures["com.beeper.hungry"] {
|
||||
br.Log.Fatalln("The config claims the homeserver is hungryserv, but the /versions response didn't confirm it")
|
||||
os.Exit(18)
|
||||
} else if !versions.ContainsGreaterOrEqual(MinSpecVersion) {
|
||||
br.Log.Fatalfln("The homeserver is outdated (server supports %s, but the bridge requires at least %s)", versions.GetLatest(), MinSpecVersion)
|
||||
os.Exit(18)
|
||||
} else if fr, ok := br.Child.(CSFeatureRequirer); ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue