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
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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. }