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个字符

addr.go 293B

1234567891011121314151617
  1. package dc
  2. import (
  3. "fmt"
  4. "github.com/9seconds/mtg/v2/mtglib/internal/obfuscation"
  5. )
  6. type Addr struct {
  7. Network string
  8. Address string
  9. Obfuscator obfuscation.Obfuscator
  10. }
  11. func (d Addr) String() string {
  12. return fmt.Sprintf("addr=%s, secret=%v", d.Address, d.Obfuscator.Secret)
  13. }