mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2025-12-24 12:57:52 +08:00
18 lines
388 B
Go
18 lines
388 B
Go
package openp2p
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDialTCP(t *testing.T) {
|
|
InitForUnitTest(LvDEBUG)
|
|
// ul, err := dialTCP("[240e:3b1:6f6:d14:1c0b:9605:554d:351c]", 3389, 0, LinkModeTCP6)
|
|
// if err != nil || ul == nil {
|
|
// t.Error("dialTCP error:", err)
|
|
// }
|
|
ul, err := dialTCP("192.168.3.9", 3389, 0, LinkModeTCP6)
|
|
if err != nil || ul == nil {
|
|
t.Error("dialTCP error:", err)
|
|
}
|
|
}
|