在穿越了NAT的P2P隧道里,使用kcp.NewConn2建立的一对连接无法成功通信
autoexpect opened this issue · 0 comments
autoexpect commented
- 自己写的KCP的底层已经原封不动的把所有数据搬运到了另一端,但是另一端的Read函数始终无法读到和解析出Payload;
发送端
>>>>>>> [0.0.0.0:52182]=[121.224.163.26:59962] <<<<<<<
[2024-01-09 21:52:18.570] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 00000000f1002d00780d2f3751002000462500000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:18.770] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 01000000f1002d00780d2f37510020000e2600000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:19.170] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 02000000f1002d00780d2f37510020009e2700000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:19.769] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 03000000f1002d00780d2f3751002000f62900000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:20.569] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 04000000f1002d00780d2f3751002000162d00000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:21.570] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 05000000f1002d00780d2f3751002000fe3000000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:22.770] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 06000000f1002d00780d2f3751002000ae3500000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:24.170] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 07000000f1002d00780d2f3751002000273b00000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:25.771] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 08000000f1002d00780d2f3751002000674100000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:27.571] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 09000000f1002d00780d2f37510020006f4800000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:29.570] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 0a000000f1002d00780d2f37510020003f5000000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:31.770] [tunnel.go:229] WriteTo===> 121.224.163.26:59962 0b000000f1002d00780d2f3751002000d75800000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
接收端
>>>>>>> [0.0.0.0:59962]=[15.134.82.47:52182] <<<<<<<
[2024-01-09 21:52:18.512] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 00000000f1002d00780d2f3751002000462500000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:18.714] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 01000000f1002d00780d2f37510020000e2600000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:19.112] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 02000000f1002d00780d2f37510020009e2700000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:19.715] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 03000000f1002d00780d2f3751002000f62900000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:20.512] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 04000000f1002d00780d2f3751002000162d00000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:21.512] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 05000000f1002d00780d2f3751002000fe3000000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:22.713] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 06000000f1002d00780d2f3751002000ae3500000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:24.113] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 07000000f1002d00780d2f3751002000273b00000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:25.713] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 08000000f1002d00780d2f3751002000674100000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:27.514] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 09000000f1002d00780d2f37510020006f4800000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c
[2024-01-09 21:52:29.543] [tunnel.go:204] ReadFrom===> 15.134.82.47:52182 0a000000f1002d00780d2f37510020003f5000000000000000000000130000003e3e3e2068656c6c6f20776f726c64203c3c3c