Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

sockopts_keepalive.go 298B

1234567891011
  1. //go:build !openbsd
  2. package network
  3. import "net"
  4. // applyKeepAlive enables TCP keepalive on conn and applies the per-socket
  5. // idle/interval/count tuning from cfg.
  6. func applyKeepAlive(conn *net.TCPConn, cfg net.KeepAliveConfig) error {
  7. return conn.SetKeepAliveConfig(cfg) //nolint: wrapcheck
  8. }