mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
测试连接,用于验证ip,后续抓包增加可用ip
This commit is contained in:
12
example/Connect/main.go
Normal file
12
example/Connect/main.go
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/injoyai/logs"
|
||||||
|
"github.com/injoyai/tdx"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
c, err := tdx.Dial("122.51.120.217:7709")
|
||||||
|
logs.PanicErr(err)
|
||||||
|
<-c.Done()
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user