mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 13:54:02 +03:00
Propagate connection protocol
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ func (t *directTelegram) Dial(connOpts *mtproto.ConnectionOpts) (io.ReadWriteClo
|
||||
dc = 1
|
||||
}
|
||||
|
||||
return t.baseTelegram.dial(dc - 1)
|
||||
return t.baseTelegram.dial(dc-1, connOpts.ConnectionProto)
|
||||
}
|
||||
|
||||
func (t *directTelegram) Init(connOpts *mtproto.ConnectionOpts, conn io.ReadWriteCloser) (io.ReadWriteCloser, error) {
|
||||
|
||||
Reference in New Issue
Block a user