Commit 15bd15e
将 get_free_tcp_port() 函数中的socket绑定地址从空字符串 '' (等同于 0.0.0.0)
改为 _LOCAL_HOST (127.0.0.1),避免将socket暴露到所有网络接口。
这修复了 CodeQL 扫描警报 #3 (CWE-200: 信息泄露),消除了中等严重程度的安全风险。
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>
1 parent 48e5a1e commit 15bd15e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments