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.

view.go 354B

12345678910111213141516171819
  1. package dc
  2. type dcView struct {
  3. publicConfigs dcAddrSet
  4. }
  5. func (d dcView) getV4(dc int) []Addr {
  6. addrs := d.publicConfigs.getV4(dc)
  7. addrs = append(addrs, defaultDCAddrSet.getV4(dc)...)
  8. return addrs
  9. }
  10. func (d dcView) getV6(dc int) []Addr {
  11. addrs := d.publicConfigs.getV6(dc)
  12. addrs = append(addrs, defaultDCAddrSet.getV6(dc)...)
  13. return addrs
  14. }