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.

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