Ребята, подскажите, что где обновить\заменить? Не удается завести:
client:
Linux ubuntu 4.2.0-16-generic #19-Ubuntu i686
go version go1.5.1 linux/386
govpn-4.0server:
Linux 3.19.0-31-generic #36~14.04.1-Ubuntu i686
go version go1.5.1 linux/386
govpn-4.0Сгенерил айди, поднял сервер: govpn-server -bind *.*.*.*:9999 -mtu 1472 -proto tcp
main.go:88: Server startedПодключаюсь клиентом
govpn-client -key client -id ID -iface tap10 -remote *.*.*.*:9999 -proto tcp -mtu 1472с обеих сторон вижу:
client: tcp.go:83: Handshake completed
server: tcp.go:92: Peer handshake finishedна сервере 172.16.100.1/24
на клиенте 172.16.100.2/24Соединение поднялось, все ок.
Пытаюсь с клиента ping 172.16.100.1 и сразу получаю:*************
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x81424dc]
goroutine 11 [running]:
sync/atomic.AddUint64(0x1865e1ec, 0x1a, 0x0, 0x5c8, 0x186110a0)
/usr/lib/go/src/sync/atomic/asm_386.s:112 +0xc
govpn.(*Peer).EthProcess(0x1865e140, 0x0, 0x0, 0x0)
/home/test/govpn-4.0/src/govpn/peer.go:228 +0x836
main.handleTCP.func1(0x18626440, 0x18626448)
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:98 +0xea
created by main.handleTCP
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:107 +0x1350goroutine 1 [select]:
main.main()
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/main.go:123 +0x1097goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/lib/go/src/runtime/asm_386.s:1662 +0x1goroutine 5 [syscall]:
os/signal.loop()
/usr/lib/go/src/os/signal/signal_unix.go:22 +0x1a
created by os/signal.init.1
/usr/lib/go/src/os/signal/signal_unix.go:28 +0x36goroutine 6 [syscall]:
syscall.Syscall(0x3, 0x3, 0x18612c00, 0x5a6, 0x0, 0x0, 0x0)
/usr/lib/go/src/syscall/asm_linux_386.s:16 +0x5
syscall.read(0x3, 0x18612c00, 0x5a6, 0x5a6, 0x0, 0x0, 0x0)
/usr/lib/go/src/syscall/zsyscall_linux_386.go:783 +0x4f
syscall.Read(0x3, 0x18612c00, 0x5a6, 0x5a6, 0x0, 0x0, 0x0)
/usr/lib/go/src/syscall/syscall_unix.go:160 +0x45
os.(*File).read(0x18626410, 0x18612c00, 0x5a6, 0x5a6, 0x0, 0x0, 0x0)
/usr/lib/go/src/os/file_unix.go:211 +0x4a
os.(*File).Read(0x18626410, 0x18612c00, 0x5a6, 0x5a6, 0x0, 0x0, 0x0)
/usr/lib/go/src/os/file.go:95 +0x6f
github.com/bigeagle/water.(*Interface).Read(0x1860eb30, 0x18612c00, 0x5a6, 0x5a6, 0x0, 0x0, 0x0)
/home/test/govpn-4.0/src/github.com/bigeagle/water/if.go:69 +0x48
govpn.NewTAP.func1(0x186163c0)
/home/test/govpn-4.0/src/govpn/tap.go:74 +0x7f
created by govpn.NewTAP
/home/test/govpn-4.0/src/govpn/tap.go:80 +0x1f7goroutine 7 [select, locked to thread]:
runtime.gopark(0x8383f14, 0x18624f8c, 0x830ba58, 0x6, 0x846ac18, 0x2)
/usr/lib/go/src/runtime/proc.go:185 +0x12d
runtime.selectgoImpl(0x18624f8c, 0x0, 0xc)
/usr/lib/go/src/runtime/select.go:392 +0x9ee
runtime.selectgo(0x18624f8c)
/usr/lib/go/src/runtime/select.go:212 +0xf
runtime.ensureSigM.func1()
/usr/lib/go/src/runtime/signal1_unix.go:227 +0x2f9
runtime.goexit()
/usr/lib/go/src/runtime/asm_386.s:1662 +0x1goroutine 8 [IO wait]:
net.runtime_pollWait(0xb6af4580, 0x72, 0x1860e0c0)
/usr/lib/go/src/runtime/netpoll.go:157 +0x55
net.(*pollDesc).Wait(0x1864a6b8, 0x72, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:73 +0x35
net.(*pollDesc).WaitRead(0x1864a6b8, 0x0, 0x0)
/usr/lib/go/src/net/fd_poll_runtime.go:78 +0x33
net.(*netFD).Read(0x1864a680, 0x18613200, 0x5c0, 0x5c0, 0x0, 0xb6aef030, 0x1860e0c0)
/usr/lib/go/src/net/fd_unix.go:232 +0x19a
net.(*conn).Read(0x18626430, 0x18613200, 0x5c0, 0x5c0, 0x846aa60, 0x0, 0x0)
/usr/lib/go/src/net/net.go:172 +0xb9
main.handleTCP(0x18626430, 0x1864a580, 0x1864a5c0, 0x1864a600)
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:134 +0x5ac
main.startTCP(0x1864a580, 0x1864a5c0, 0x1864a600)
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:41 +0x375
created by main.main
/home/test/govpn-4.0/src/govpn/cmd/govpn-client/main.go:118 +0x10ba
>[оверквотинг удален]
> net.(*netFD).Read(0x1864a680, 0x18613200, 0x5c0, 0x5c0, 0x0, 0xb6aef030, 0x1860e0c0)
> /usr/lib/go/src/net/fd_unix.go:232 +0x19a
> net.(*conn).Read(0x18626430, 0x18613200, 0x5c0, 0x5c0, 0x846aa60, 0x0, 0x0)
> /usr/lib/go/src/net/net.go:172 +0xb9
> main.handleTCP(0x18626430, 0x1864a580, 0x1864a5c0, 0x1864a600)
> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:134 +0x5ac
> main.startTCP(0x1864a580, 0x1864a5c0, 0x1864a600)
> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:41 +0x375
> created by main.main
> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/main.go:118 +0x10baБрось эту каку. Используй софт на ANSI C
>[оверквотинг удален]
>> /usr/lib/go/src/net/fd_unix.go:232 +0x19a
>> net.(*conn).Read(0x18626430, 0x18613200, 0x5c0, 0x5c0, 0x846aa60, 0x0, 0x0)
>> /usr/lib/go/src/net/net.go:172 +0xb9
>> main.handleTCP(0x18626430, 0x1864a580, 0x1864a5c0, 0x1864a600)
>> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:134 +0x5ac
>> main.startTCP(0x1864a580, 0x1864a5c0, 0x1864a600)
>> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/tcp.go:41 +0x375
>> created by main.main
>> /home/test/govpn-4.0/src/govpn/cmd/govpn-client/main.go:118 +0x10ba
> Брось эту каку. Используй софт на ANSI CМожете предложить альтернативу говпн с noise ?