bjdgyc / anylink

AnyLink是一个企业级远程办公 ssl vpn 软件,可以支持多人同时在线使用。基于 openconnect 协议开发,并且借鉴了 ocserv 的开发思路,可以完全兼容 AnyConnect 客户端。
GNU Affero General Public License v3.0
1.59k stars 381 forks source link

修复sniNewParser的panic #267

Closed lanrenwo closed 11 months ago

lanrenwo commented 11 months ago

主要提升“日志审计”模块的健壮性,谢谢大佬!

1、防止日志审计的panic影响到主进程。 2、修复sniNewParser的panic:

panic: runtime error: slice bounds out of range [5:4]

goroutine 38 [running]:
github.com/bjdgyc/anylink/handler.sniNewParser({0xc008139834?, 0xc01ee9ff20?, 0xc0005b4cd0?})
codecov-commenter commented 11 months ago

Codecov Report

Patch has no changes to coverable lines.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

Files Changed Coverage
server/handler/payload_access_audit.go 0.00%
server/handler/payload_tcp_parser.go 0.00%

:loudspeaker: Thoughts on this report? Let us know!.