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.

123456789101112131415161718
  1. package proxy
  2. import (
  3. "sync"
  4. "github.com/9seconds/mtg/config"
  5. )
  6. var copyPool sync.Pool
  7. func init() {
  8. copyPool = sync.Pool{
  9. New: func() interface{} {
  10. data := make([]byte, config.BufferSizeCopy)
  11. return &data
  12. },
  13. }
  14. }