Skip to content

WSL2 - no recent network activity #1474

@kx001001

Description

@kx001001

描述问题
使用hysterial 2.4.4 及以下版本以客户端模式能够正常连接,使用2.4.5及以上版本则出现 [no recent network activity](error: timeout: no recent network activity)

如何复现
标准WSL2 环境, 内核版本 Linux linux 6.6.87.2-microsoft-standard-WSL2,使用上述分别使用2.4.5可以复现该问题

预期行为
后续新版本应能在WSL2中正常连接

日志
root@linux:~/hysteria2# ./hysteria-linux-amd64 version

░█░█░█░█░█▀▀░▀█▀░█▀▀░█▀▄░▀█▀░█▀█░░░▀▀▄
░█▀█░░█░░▀▀█░░█░░█▀▀░█▀▄░░█░░█▀█░░░▄▀░
░▀░▀░░▀░░▀▀▀░░▀░░▀▀▀░▀░▀░▀▀▀░▀░▀░░░▀▀▀

a powerful, lightning fast and censorship resistant proxy
Aperture Internet Laboratory https://github.com/apernet

Version: v2.4.5
BuildDate: 2024-06-05T02:46:04Z
BuildType: release
CommitHash: 52c8f82
Platform: linux
Architecture: amd64
root@linux:~/hysteria2# ./hysteria-linux-amd64 client -c config.yaml
2025-11-18T14:48:48+08:00 INFO client mode
2025-11-18T14:48:53+08:00 FATAL failed to initialize client {"error": "connect error: timeout: no recent network activity"}

==================================================

root@linux:~/hysteria2# ./hysteria-linux-amd64-avx version

░█░█░█░█░█▀▀░▀█▀░█▀▀░█▀▄░▀█▀░█▀█░░░▀▀▄
░█▀█░░█░░▀▀█░░█░░█▀▀░█▀▄░░█░░█▀█░░░▄▀░
░▀░▀░░▀░░▀▀▀░░▀░░▀▀▀░▀░▀░▀▀▀░▀░▀░░░▀▀▀

a powerful, lightning fast and censorship resistant proxy
Aperture Internet Laboratory https://github.com/apernet

Version: v2.6.5
BuildDate: 2025-10-24T02:55:26Z
BuildType: release
Toolchain: go1.25.3 linux/amd64
CommitHash: 55e70a5
Platform: linux
Architecture: amd64-avx
Libraries: quic-go=v0.54.1-0.20251024023933-5e0818a71079
root@linux:~/hysteria2# ./hysteria-linux-amd64-avx client -c config.yaml
2025-11-18T14:50:06+08:00 INFO client mode
2025-11-18T14:50:11+08:00 FATAL failed to initialize client {"error": "connect error: timeout: no recent network activity"}

============================================
v2.4.4 可以正常连接,信息如下

root@linux:~/hysteria2# ./v244_amd64 version

░█░█░█░█░█▀▀░▀█▀░█▀▀░█▀▄░▀█▀░█▀█░░░▀▀▄
░█▀█░░█░░▀▀█░░█░░█▀▀░█▀▄░░█░░█▀█░░░▄▀░
░▀░▀░░▀░░▀▀▀░░▀░░▀▀▀░▀░▀░▀▀▀░▀░▀░░░▀▀▀

a powerful, lightning fast and censorship resistant proxy
Aperture Internet Laboratory https://github.com/apernet

Version: v2.4.4
BuildDate: 2024-05-18T02:52:16Z
BuildType: release
CommitHash: 15e5846
Platform: linux
Architecture: amd64
root@linux:~/hysteria2# ./v244_amd64 client -c config.yaml
2025-11-18T14:51:16+08:00 INFO client mode
2025-11-18T14:51:16+08:00 INFO connected to server {"udpEnabled": true, "tx": 0, "count": 1}
2025-11-18T14:51:16+08:00 INFO use this URI to share your server {"uri": "hysteria2://password@xxxxxxx:xxxx/?insecure=1"}
2025-11-18T14:51:16+08:00 DEBUG checking for updates {"version": "v2.4.4", "platform": "linux", "arch": "amd64", "channel": "release"}
2025-11-18T14:51:16+08:00 INFO UDP forwarding listening {"addr": "127.0.0.1:59253", "remote": "x.x.x.x:59253"}
2025-11-18T14:51:16+08:00 INFO SOCKS5 server listening {"addr": "127.0.0.1:1080"}
2025-11-18T14:51:17+08:00 DEBUG SOCKS5 TCP request {"addr": "10.255.255.254:34820", "reqAddr": "x.x.x.x1:8080"}
2025-11-18T14:51:17+08:00 INFO update available {"version": "v2.6.5", "url": "https://github.com/apernet/hysteria/releases", "urgent": true}

设备和操作系统
Windows11 23H2 中的 WSL2

额外信息

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions