From 52a5825df713155ec387c0db570943c9b8b84b5d Mon Sep 17 00:00:00 2001 From: armv9 <48624112+arm64v8a@users.noreply.github.com> Date: Sun, 7 Sep 2025 14:32:42 +0900 Subject: [PATCH] update go 1.25 & fix --- .github/workflows/preview.yml | 2 +- .github/workflows/release.yml | 2 +- libcore/nb4a.go | 3 ++- nb4a.properties | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 0f326ef..a6df3a1 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -24,7 +24,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' uses: actions/setup-go@v5 with: - go-version: ^1.24 + go-version: ^1.25 - name: Native Build if: steps.cache.outputs.cache-hit != 'true' run: ./run lib core diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0cd2341..7aecc1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' uses: actions/setup-go@v5 with: - go-version: ^1.24 + go-version: ^1.25 - name: Native Build if: steps.cache.outputs.cache-hit != 'true' run: ./run lib core diff --git a/libcore/nb4a.go b/libcore/nb4a.go index 998aabc..cfa1e78 100644 --- a/libcore/nb4a.go +++ b/libcore/nb4a.go @@ -14,6 +14,7 @@ import ( "github.com/matsuridayo/libneko/neko_common" "github.com/matsuridayo/libneko/neko_log" "github.com/sagernet/sing-box/nekoutils" + "github.com/sagernet/sing-box/option" "golang.org/x/sys/unix" ) @@ -43,7 +44,7 @@ func InitCore(process, cachePath, internalAssets, externalAssets string, intfNB4A = if1 intfBox = if2 useProcfs = intfBox.UseProcFS() - gLocalDNSTransport = &platformLocalDNSTransport{iif: if3} + gLocalDNSTransport = newPlatformTransport(if3, "", option.LocalDNSServerOptions{}) // Working dir tmp := filepath.Join(cachePath, "../no_backup") diff --git a/nb4a.properties b/nb4a.properties index 799dff4..22c97eb 100644 --- a/nb4a.properties +++ b/nb4a.properties @@ -1,4 +1,4 @@ PACKAGE_NAME=moe.nb4a VERSION_NAME=1.3.9 -PRE_VERSION_NAME=pre-1.4.0-20250906-2 +PRE_VERSION_NAME=pre-1.4.0-20250907-1 VERSION_CODE=43