chore: bump version to 1.8.4

This commit is contained in:
SunBK201 2025-11-19 14:06:15 +08:00
parent 904292e511
commit fb9ad37cb5
13 changed files with 68 additions and 32 deletions

View File

@ -9,18 +9,8 @@ permissions:
contents: write contents: write
jobs: jobs:
build: build-ipk:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- x86_64
- aarch64_generic
- arm_cortex-a7_neon-vfpv4
- arm_cortex-a15_neon-vfpv4
- mips_24kc
- mipsel_24kc
steps: steps:
- name: Checkout code - name: Checkout code
@ -39,23 +29,71 @@ jobs:
make make
sudo make install sudo make install
- name: Build binaries - name: Build IPK binaries
run: | run: |
chmod +x build.sh chmod +x build.sh
./build.sh ./build.sh
- name: Upload IPK artifacts
uses: actions/upload-artifact@v4
with:
name: ipk-packages
path: dist/*
retention-days: 1
build-apk:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- x86_64
- aarch64_generic
- arm_cortex-a7_neon-vfpv4
- arm_cortex-a15_neon-vfpv4
- mips_24kc
- mipsel_24kc
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Build APK - name: Build APK
uses: openwrt/gh-action-sdk@v9 uses: openwrt/gh-action-sdk@v9
env: env:
ARCH: ${{ matrix.arch }} ARCH: ${{ matrix.arch }}
FEEDNAME: ua3f_ci FEEDNAME: ua3f_ci
PACKAGES: openwrt PACKAGES: openwrt
V: sc
- name: Rename APK with arch suffix
- name: move apks to dist folder
run: | run: |
mkdir -p dist cd bin/packages/${{ matrix.arch }}/ua3f_ci/
cp bin/packages/${{ matrix.arch }}/ua3f_ci/*.apk dist/ for f in *.apk; do mv "$f" "${f/.apk/-${{ matrix.arch }}.apk}" 2>/dev/null || true; done
- name: Upload APK artifacts
uses: actions/upload-artifact@v4
with:
name: apk-packages-${{ matrix.arch }}
path: bin/packages/${{ matrix.arch }}/ua3f_ci/*.apk
retention-days: 1
release:
needs: [build-ipk, build-apk]
runs-on: ubuntu-latest
steps:
- name: Download IPK artifacts
uses: actions/download-artifact@v4
with:
name: ipk-packages
path: dist/
- name: Download APK artifacts
uses: actions/download-artifact@v4
with:
pattern: apk-packages-*
path: dist/
merge-multiple: true
- name: Get version from tag - name: Get version from tag
id: get_version id: get_version

View File

@ -8,7 +8,7 @@
set -e set -e
project_name="ua3f" project_name="ua3f"
release_version="1.8.3" release_version="1.8.4"
target=main.go target=main.go
dist=./dist dist=./dist
release_dir=./bin release_dir=./bin

View File

@ -1,5 +1,5 @@
Package: ua3f Package: ua3f
Version: 1.8.3-1 Version: 1.8.4-1
Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack, iptables-mod-ipopt, iptables-mod-nfqueue, iptables-mod-conntrack-extra, kmod-nf-conntrack-netlink Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack, iptables-mod-ipopt, iptables-mod-nfqueue, iptables-mod-conntrack-extra, kmod-nf-conntrack-netlink
Source: /feed/openwrt Source: /feed/openwrt
SourceName: UA3F SourceName: UA3F

View File

@ -1,5 +1,5 @@
Package: ua3f Package: ua3f
Version: 1.8.3-1 Version: 1.8.4-1
Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack, iptables-mod-ipopt, iptables-mod-nfqueue, iptables-mod-conntrack-extra, kmod-nf-conntrack-netlink Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack, iptables-mod-ipopt, iptables-mod-nfqueue, iptables-mod-conntrack-extra, kmod-nf-conntrack-netlink
Source: /feed/openwrt Source: /feed/openwrt
SourceName: UA3F SourceName: UA3F

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=UA3F PKG_NAME:=UA3F
PKG_VERSION:=1.8.3 PKG_VERSION:=1.8.4
PKG_RELEASE:=1 PKG_RELEASE:=1
# PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz # PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@ -37,6 +37,7 @@ endef
define Build/Prepare define Build/Prepare
$(CP) ../src/* $(PKG_BUILD_DIR) $(CP) ../src/* $(PKG_BUILD_DIR)
$(CP) ./files $(PKG_BUILD_DIR)/
po2lmo ./po/zh_cn/ua3f.po $(PKG_BUILD_DIR)/ua3f.zh-cn.lmo po2lmo ./po/zh_cn/ua3f.po $(PKG_BUILD_DIR)/ua3f.zh-cn.lmo
endef endef

View File

@ -6,7 +6,7 @@ local NamedSection = cbi.NamedSection
local ua3f = cbi.Map("ua3f", local ua3f = cbi.Map("ua3f",
"UA3F", "UA3F",
[[ [[
<a href="https://github.com/SunBK201/UA3F" target="_blank">Version: 1.8.3</a> <a href="https://github.com/SunBK201/UA3F" target="_blank">Version: 1.8.4</a>
<br> <br>
Across the Campus we can reach every corner in the world. Across the Campus we can reach every corner in the world.
]] ]]

View File

@ -139,6 +139,7 @@ function M.add_log_fields(section)
log_level:value("INFO") log_level:value("INFO")
log_level:value("WARN") log_level:value("WARN")
log_level:value("ERROR") log_level:value("ERROR")
log_level.default = "ERROR"
log_level.description = translate( log_level.description = translate(
"Sets the logging level. Do not keep the log level set to DEBUG/INFO for an extended period of time.") "Sets the logging level. Do not keep the log level set to DEBUG/INFO for an extended period of time.")

View File

@ -92,7 +92,7 @@ start_service() {
config_get ua "main" "ua" "FFF" config_get ua "main" "ua" "FFF"
config_get ua_regex "main" "ua_regex" "" config_get ua_regex "main" "ua_regex" ""
config_get_bool partial_replace "main" "partial_replace" 0 config_get_bool partial_replace "main" "partial_replace" 0
config_get log_level "main" "log_level" "INFO" config_get log_level "main" "log_level" "ERROR"
config_get rewrite_mode "main" "rewrite_mode" "GLOBAL" config_get rewrite_mode "main" "rewrite_mode" "GLOBAL"
config_get rewrite_rules "main" "rewrite_rules" "" config_get rewrite_rules "main" "rewrite_rules" ""
config_get_bool set_ttl "main" "set_ttl" 0 config_get_bool set_ttl "main" "set_ttl" 0
@ -132,7 +132,7 @@ start_service() {
procd_close_instance procd_close_instance
LOG "Started $NAME service." LOG "$NAME service started"
} }
service_triggers() { service_triggers() {

View File

@ -10,7 +10,7 @@ config 'ua3f' 'main'
option ua_regex '' option ua_regex ''
option partial_replace '0' option partial_replace '0'
option direct_forward '0' option direct_forward '0'
option log_level 'error' option log_level 'ERROR'
option log_lines '1000' option log_lines '1000'
option set_ttl '0' option set_ttl '0'
option del_tcpts '0' option del_tcpts '0'

View File

@ -71,7 +71,7 @@ var (
"meta l4proto != tcp", "meta l4proto != tcp",
"return", "return",
) )
NftRuleIgnoreBrLAN = knftables.Concat( NftRuleIgnoreNotBrLAN = knftables.Concat(
"iifname != \"br-lan\"", "iifname != \"br-lan\"",
"return", "return",
) )

View File

@ -58,25 +58,21 @@ func (s *Server) NftSetNfqueue(tx *knftables.Transaction, table *knftables.Table
Rule: netfilter.NftRuleIgnoreNotTCP, Rule: netfilter.NftRuleIgnoreNotTCP,
}) })
// nft add rule ip $NFT_TABLE postrouting ct direction reply counter return
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{
Chain: chain.Name, Chain: chain.Name,
Rule: netfilter.NftRuleIgnoreReply, Rule: netfilter.NftRuleIgnoreReply,
}) })
// nft add rule ip $NFT_TABLE postrouting ip daddr @$UA3F_LANSET counter return
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{
Chain: chain.Name, Chain: chain.Name,
Rule: netfilter.NftRuleIgnoreLAN, Rule: netfilter.NftRuleIgnoreLAN,
}) })
// nft add rule ip $NFT_TABLE postrouting tcp dport {$SKIP_PORTS} return
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{
Chain: chain.Name, Chain: chain.Name,
Rule: netfilter.NftRuleIgnorePorts, Rule: netfilter.NftRuleIgnorePorts,
}) })
// nft add rule ip $NFT_TABLE postrouting ct mark 201 counter return
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{
Chain: chain.Name, Chain: chain.Name,
Rule: knftables.Concat( Rule: knftables.Concat(

View File

@ -55,7 +55,7 @@ func (s *Server) NftSetRedirect(tx *knftables.Transaction, table *knftables.Tabl
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{
Chain: chain.Name, Chain: chain.Name,
Rule: netfilter.NftRuleIgnoreBrLAN, Rule: netfilter.NftRuleIgnoreNotBrLAN,
}) })
tx.Add(&knftables.Rule{ tx.Add(&knftables.Rule{

View File

@ -16,7 +16,7 @@ import (
"github.com/sunbk201/ua3f/internal/statistics" "github.com/sunbk201/ua3f/internal/statistics"
) )
const version = "1.8.3" const version = "1.8.4"
func main() { func main() {
cfg, showVer := config.Parse() cfg, showVer := config.Parse()