mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:14:02 +03:00
Merge pull request #420 from dolonet/fix/telegram-relay-idle-timeout
fix: apply idle timeout to Telegram relay
This commit is contained in:
+2
-2
@@ -105,8 +105,8 @@ func (p *Proxy) ServeConn(conn essentials.Conn) {
|
||||
relay.Relay(
|
||||
ctx,
|
||||
ctx.logger.Named("relay"),
|
||||
ctx.telegramConn,
|
||||
ctx.clientConn,
|
||||
connIdleTimeout{Conn: ctx.telegramConn, timeout: p.idleTimeout},
|
||||
connIdleTimeout{Conn: ctx.clientConn, timeout: p.idleTimeout},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user