1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-12 12:50:28 +08:00

complete en/decode

This commit is contained in:
fumiama
2021-12-27 23:24:41 +08:00
parent 7cb3ef6488
commit bba9662a5b
6 changed files with 41 additions and 14 deletions

View File

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