fix: sync lenient DC-ID validation for key exchange

This commit is contained in:
onysd 2026-07-24 17:36:13 +03:00
parent 0e2fcdf9c8
commit e7eb07b9eb
5 changed files with 82 additions and 6 deletions

View file

@ -1010,6 +1010,7 @@ func run(logger *zap.Logger) error {
srv := mtprotoedge.New(mtprotoedge.Options{
Logger: logger.Named("mtprotoedge"),
DC: cfg.DC,
StrictDC: cfg.StrictDCCheck,
RSAKey: rsaKey,
LayerRPC: router,
AuthKeys: authKeyStore,