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
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

noop.go 289B

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