mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:34: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(
|
relay.Relay(
|
||||||
ctx,
|
ctx,
|
||||||
ctx.logger.Named("relay"),
|
ctx.logger.Named("relay"),
|
||||||
ctx.telegramConn,
|
connIdleTimeout{Conn: ctx.telegramConn, timeout: p.idleTimeout},
|
||||||
ctx.clientConn,
|
connIdleTimeout{Conn: ctx.clientConn, timeout: p.idleTimeout},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user