malcolmseyd/natpunch-go

Crash

tarasglek opened this issue · 0 comments

When I have a tunnel established, run iperf test on it, then run the client I get:

Key rotation failed: client/network: incorrect packet type
Key rotation failed: client/network: incorrect packet type
Key rotation failed: client/network: incorrect packet type
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x1f99d8]

goroutine 1 [running]:
github.com/flynn/noise.(*CipherState).Cipher(...)
        /Users/taras/go/pkg/mod/github.com/flynn/noise@v1.0.0/state.go:79
github.com/malcolmseyd/natpunch-go/client/network.Handshake(0x180e930, {0x30, 0x19, 0x65, 0x4b, 0xe8, 0x50, 0xb3, 0x5d, 0x56, ...}, ...)
        /Users/taras/Downloads/natpunch-go/client/network/network.go:230 +0x624
main.run({0x7f87ca5a, 0x9}, {{0x7f87ca64, 0xc}, 0x1860108, 0xc33, {0x42, 0x7f, 0x8, 0x2b, ...}, ...}, ...)
        /Users/taras/Downloads/natpunch-go/client/client.go:126 +0x70c
main.main()
        /Users/taras/Downloads/natpunch-go/client/client.go:73 +0x644

This is on openwrt, on a pretty low-end mips. Works fine without network test in backround.