1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-09 18:40:36 +08:00

init complete

This commit is contained in:
fumiama
2021-10-25 01:01:22 +08:00
parent d9138df3cd
commit e29d5b2f48
9 changed files with 115 additions and 38 deletions

View File

@@ -10,7 +10,7 @@ import (
func TestTunnel(t *testing.T) {
logrus.SetLevel(logrus.DebugLevel)
link.SetMyself([32]byte{}, "192.168.1.2", "127.0.0.1:1236")
link.AddPeer("192.168.1.2", [32]byte{}, "127.0.0.1:1236", 0)
link.AddPeer("192.168.1.2", [32]byte{}, "127.0.0.1:1236", nil, 0)
tunn, err := Create("192.168.1.2", 1, 1)
if err != nil {
t.Error(err)