init
Publish mtproxy_checker Docker image / test (push) Successful in 19s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 48s

This commit is contained in:
Denozordec
2026-04-11 00:38:22 +07:00
commit 4905c06b9b
26 changed files with 1887 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package parseurl
import "testing"
func TestParseTGProxy(t *testing.T) {
raw := "tg://proxy?server=example.com&port=443&secret=ee0102030405060708090a0b0c0d0e0f10632e6578616d706c652e636f6d"
tg, err := ParseTGProxy(raw)
if err != nil {
t.Fatal(err)
}
if tg.Host != "example.com" || tg.Port != 443 {
t.Fatalf("%+v", tg)
}
if tg.Secret == "" {
t.Fatal("secret")
}
}