diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 7860e70..544cd0a 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -42,12 +42,19 @@ jobs: with: script: | const tag = "${{ steps.version.outputs.file_version }}"; - + + const commits = await github.rest.repos.listCommits({ + owner: context.repo.owner, + repo: context.repo.repo, + per_page: 1 + }); + const lastMessage = commits.data[0].commit.message; + const release = await github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, tag_name: tag, - body: `Auto-generated release for version ${tag}` + body: lastMessage }).catch(err => console.log(`Skip release ${err.message}`)); const { data: releases } = await github.rest.repos.listReleases({ diff --git a/documents/sing-box.json b/documents/sing-box.json index df455df..36f2cb5 100644 --- a/documents/sing-box.json +++ b/documents/sing-box.json @@ -23,6 +23,7 @@ "type": "https", "server": "1.1.1.1", "server_port": 443, + "detour": "自动选择", "path": "/dns-query", "domain_resolver": "dns_resolver" }, @@ -50,35 +51,31 @@ { "action": "route", "clash_mode": "direct", - "server": "dns_direct", - "strategy": "prefer_ipv4" + "server": "dns_direct" }, { "action": "route", "clash_mode": "global", - "server": "dns_proxy", - "strategy": "prefer_ipv4" + "server": "dns_proxy" }, { "action": "route", "rule_set": "geosite-cn", - "server": "dns_direct", - "strategy": "prefer_ipv4" + "server": "dns_direct" }, { "action": "route", "rule_set": "geoip-cn", - "server": "dns_direct", - "strategy": "prefer_ipv4" + "server": "dns_direct" }, { "action": "route", "rule_set": "geosite-geolocation-!cn", - "server": "dns_proxy", - "strategy": "prefer_ipv4" + "server": "dns_proxy" } ], "independent_cache": true, + "strategy": "prefer_ipv4", "final": "dns_direct" }, "inbounds": [ @@ -356,6 +353,10 @@ "protocol": "dns", "action": "hijack-dns" }, + { + "ip_is_private": true, + "outbound": "direct" + }, { "clash_mode": "global", "outbound": "手动切换" diff --git a/install.sh b/install.sh index 97bfe87..58cf1d3 100644 --- a/install.sh +++ b/install.sh @@ -9945,7 +9945,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.4.24" + echoContent green "当前版本:v3.4.25" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus