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
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

addr_test.go 285B

12345678910111213141516
  1. package dc_test
  2. import (
  3. "testing"
  4. "github.com/9seconds/mtg/v2/mtglib/internal/dc"
  5. "github.com/stretchr/testify/assert"
  6. )
  7. func TestAddr(t *testing.T) {
  8. t.Parallel()
  9. addr := dc.Addr{Network: "tcp4", Address: "127.0.0.1:443"}
  10. assert.Equal(t, "127.0.0.1:443", addr.String())
  11. }