mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:04:02 +03:00
Add possibility to scale middleproxy buffers
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ func (b *baseTelegram) dial(dc conntypes.DC,
|
||||
continue
|
||||
}
|
||||
|
||||
if err := utils.InitTCP(conn); err != nil {
|
||||
if err := utils.InitTCP(conn, config.C.ProxyReadBuffer(), config.C.ProxyWriteBuffer()); err != nil {
|
||||
b.logger.Infow("Cannot initialize TCP socket", "address", addr, "error", err)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user