From 39fa986d55745107eec47feb0ce72a8be6747d4c Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Tue, 3 Dec 2024 15:47:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20recover=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/handler/payload_access_audit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/handler/payload_access_audit.go b/server/handler/payload_access_audit.go index d3d91b7..5e58cac 100644 --- a/server/handler/payload_access_audit.go +++ b/server/handler/payload_access_audit.go @@ -106,6 +106,9 @@ func logAudit(userName string, pl *sessdata.Payload) { if err := recover(); err != nil { base.Error("logAudit is panic: ", err, "\n", string(debug.Stack()), "\n", pl.Data) } + }() + + defer func() { putPayload(pl) }() From 825a4bc6caaa9f87954ea18c526f0b58d29ede7b Mon Sep 17 00:00:00 2001 From: bjdgyc Date: Fri, 6 Dec 2024 11:38:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dbab5fd..9746cc8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,8 @@ AnyLink 基于 [ietf-openconnect](https://tools.ietf.org/html/draft-mavrogiannop AnyLink 使用 TLS/DTLS 进行数据加密,因此需要 RSA 或 ECC 证书,可以使用私有自签证书,可以通过 Let's Encrypt 和 TrustAsia 申请免费的 SSL 证书。 -AnyLink 服务端仅在 CentOS 7、CentOS 8、Ubuntu 18、Ubuntu 20、Ubuntu 20、AnolisOS 8 测试通过,如需要安装在其他系统,需要服务端支持 tun/tap +AnyLink 服务端仅在 CentOS 7、CentOS 8、Ubuntu 18、Ubuntu 20、Ubuntu 20、AnolisOS 8 测试通过,如需要安装在其他系统,需要服务端支持 +tun/tap 功能、ip 设置命令、iptables命令。 ## Screenshot @@ -164,12 +165,12 @@ sudo ./anylink > > 数据库表结构自动生成,无需手动导入(请赋予 DDL 权限) -| db_type | db_source | -|----------|----------------------------------------------------------------------------| -| sqlite3 | ./conf/anylink.db | -| mysql | user:password@tcp(127.0.0.1:3306)/anylink?charset=utf8 | -| postgres | postgres://user:password@localhost/anylink?sslmode=verify-full | -| mssql | sqlserver://user:password@localhost?database=anylink&connection+timeout=30 | +| db_type | db_source | +|----------|----------------------------------------------------------------------------------------------------------------------| +| sqlite3 | ./conf/anylink.db | +| mysql | user:password@tcp(127.0.0.1:3306)/anylink?charset=utf8
user:password@tcp(127.0.0.1:3306)/anylink?charset=utf8mb4 | +| postgres | postgres://user:password@localhost/anylink?sslmode=verify-full | +| mssql | sqlserver://user:password@localhost?database=anylink&connection+timeout=30 | > 示例配置文件 >