优化编译脚本

This commit is contained in:
bjdgyc 2024-02-01 17:18:16 +08:00
parent 02bc75b27a
commit 936c44e866
7 changed files with 22 additions and 13 deletions

2
.github/FUNDING.yml vendored
View File

@ -1,6 +1,6 @@
# These are supported funding model platforms # These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] github: [ 'bjdgyc' ] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username ko_fi: # Replace with a single Ko-fi username

View File

@ -13,13 +13,14 @@ name: "CodeQL"
on: on:
workflow_dispatch: workflow_dispatch:
schedule:
- cron: '32 5 * * 1'
# push: # push:
# branches: [ "main", "dev" ] # branches: [ "main", "dev" ]
# pull_request: # pull_request:
# branches: [ "main", "dev" ] # branches: [ "main", "dev" ]
# schedule:
# - cron: '32 12 * * 5'
jobs: jobs:
analyze: analyze:

View File

@ -3,10 +3,10 @@ name: Go
on: on:
workflow_dispatch: workflow_dispatch:
# push: push:
# branches: [ "main", "dev" ] branches: [ "main", "dev" ]
# pull_request: pull_request:
# branches: [ "main", "dev" ] branches: [ "main", "dev" ]
jobs: jobs:

View File

@ -5,6 +5,7 @@ on:
push: push:
tags: tags:
- "v0.*" - "v0.*"
- "v1.*"
jobs: jobs:
Build: Build:
@ -46,7 +47,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true logout: true
- name: pre bash - name: Pre bash
shell: bash shell: bash
run: | run: |
appVer=`cat version` appVer=`cat version`
@ -65,8 +66,8 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
#cache-from: type=gha,scope=anylink cache-from: type=gha,scope=anylink
#cache-to: type=gha,mode=max,scope=anylink cache-to: type=gha,mode=max,scope=anylink
context: . context: .
file: ./docker/Dockerfile file: ./docker/Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7

View File

@ -46,6 +46,12 @@ mobile_dpd = 15
> >
> 如经常出现 timeout 的错误信息应根据当前防火墙的设置适当减小dpd数值 > 如经常出现 timeout 的错误信息应根据当前防火墙的设置适当减小dpd数值
### 关于审计日志 audit_interval 参数
> 默认值 `audit_interval = 600` 表示相同日志600秒内只记录一次不同日志首次出现立即记录
>
> 去重key的格式: 16字节源IP地址 + 16字节目的IP地址 + 2字节目的端口 + 1字节协议类型 + 16字节域名MD5
### 反向代理问题 ### 反向代理问题
> anylink 仅支持四层反向代理,不支持七层反向代理 > anylink 仅支持四层反向代理,不支持七层反向代理

View File

@ -135,6 +135,7 @@ func logAudit(userName string, pl *sessdata.Payload) {
ipSrc := waterutil.IPv4Source(pl.Data) ipSrc := waterutil.IPv4Source(pl.Data)
ipDst := waterutil.IPv4Destination(pl.Data) ipDst := waterutil.IPv4Destination(pl.Data)
b := getByte51() b := getByte51()
// key格式 16字节源IP地址 + 16字节目的IP地址 + 2字节目的端口 + 1字节协议类型 + 16字节域名MD5
key := *b key := *b
copy(key[:16], ipSrc) copy(key[:16], ipSrc)
copy(key[16:32], ipDst) copy(key[16:32], ipDst)

View File

@ -1 +1 @@
0.10.3-test 0.10.4