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文字以内のものにしてください。

12345678910111213141516171819
  1. package ipblocklist
  2. import (
  3. "net"
  4. "time"
  5. "github.com/9seconds/mtg/v2/mtglib"
  6. )
  7. type noop struct{}
  8. func (n noop) Contains(ip net.IP) bool { return false }
  9. func (n noop) Run(updateEach time.Duration) {}
  10. func (n noop) Shutdown() {}
  11. // NewNoop returns a dummy ipblocklist which allows all incoming connections.
  12. func NewNoop() mtglib.IPBlocklist {
  13. return noop{}
  14. }