hexian000 / kcptun-libev

A powerful and extremely lightweight encrypted port forwarder based on reliable UDP protocol.
MIT License
26 stars 7 forks source link

当客户端连接,服务端就会出现段错误 #2

Closed pexcn closed 1 year ago

pexcn commented 1 year ago

我使用的是 release 最新版,配置和日志如下:

root@HK ~/test # cat server.json
{
    "connect": "127.0.0.1:1984",
    "udp_bind": "0.0.0.0:1983",
    "kcp": {
        "mtu": 1400,
        "sndwnd": 256,
        "rcvwnd": 256,
        "nodelay": 0,
        "interval": 10,
        "resend": 3,
        "nc": 1
    },
    "udp": {
        "sndbuf": 1048576,
        "rcvbuf": 1048576
    },
    "loglevel": 0
}
root@HK ~/test # ./kcptun-libev-static.x86_64-linux -c server.json
kcptun-libev 2.0
  http://github.com/hexian000/kcptun-libev

I 2022-10-07T17:47:43+0800 main.c:97 initializing...
D 2022-10-07T17:47:43+0800 conf.c:304 resolve: "127.0.0.1:1984" is 127.0.0.1:1984
D 2022-10-07T17:47:43+0800 conf.c:304 resolve: "0.0.0.0:1983" is 0.0.0.0:1983
W 2022-10-07T17:47:43+0800 packet.c:384 data will not be encrypted
I 2022-10-07T17:47:43+0800 server.c:104 udp bind: 0.0.0.0:1983
I 2022-10-07T17:47:43+0800 main.c:130 server start
V 2022-10-07T17:47:53+0800 event_udp.c:91 udp recv: <客户端IP>:59298 28 bytes
段错误 (核心已转储)
root@HK ~/test #
pexcn commented 1 year ago

测试过需要加上这两项配置才能正常使用,想问下作者,怎样才能禁用加密呢?😀

...
    "method": "xchacha20poly1305_ietf",
    "password": "k",
...
hexian000 commented 1 year ago

@pexcn 试试v2.0.1

pexcn commented 1 year ago

已测试,能正常运行了