Compare commits

...

25 Commits

Author SHA1 Message Date
e25c0d90c0 mirror: replace github.com → uralgit.ru for RF access 2026-08-10 20:30:43 +05:00
124c9f7983 updater: Add flag --force-non-repository for APK 2026-04-22 20:19:14 +03:00
704480b9ea ipset: Update zapret-ip-exclude.txt from upstream
PR #777
2026-04-11 17:19:07 +03:00
b0a6ee5593 init.d: fix error when packaging with Image Builder (init script) master
PR #771
2026-04-11 17:13:48 +03:00
cdd0f74684 diag: dwc: Fix ip parsing 2026-03-28 10:09:14 +03:00
1273c6c616 ipset: Update zapret-hosts-user-exclude.txt 2026-03-20 13:48:52 +03:00
11ba0aea23 Bump version to v0.9.20260307
Some checks failed
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a8_vfpv3 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a8_vfpv3 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a9 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a9_neon (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9_neon (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9_vfpv3-d16 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_fa526 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_fa526 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_xscale (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_xscale (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips64_octeonplus (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips64_octeonplus (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_4kec (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_24kc_24kf (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_24kc_24kf (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_74kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_74kc (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: riscv64_generic (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: x86_64 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: x86_64 (push) Has been cancelled
build / release (push) Has been cancelled
2026-03-07 08:39:37 +03:00
da0c37f4b6 build: Switch to use v25.12.0 SDK (apk) 2026-03-07 08:26:58 +03:00
f11e0f436f Bump version to v0.9.20260226
Some checks failed
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a8_vfpv3 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a8_vfpv3 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a9 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_cortex-a9_neon (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9_neon (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_cortex-a9_vfpv3-d16 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_fa526 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_fa526 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: arm_xscale (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: arm_xscale (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips64_octeonplus (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips64_octeonplus (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_4kec (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mips_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mips_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_24kc (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_24kc_24kf (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_24kc_24kf (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_74kc (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_74kc (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: mipsel_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: mipsel_mips32 (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: riscv64_generic (push) Has been cancelled
build / ${{ needs.var.outputs.APK_BRANCH }}: x86_64 (push) Has been cancelled
build / ${{ needs.var.outputs.IPK_BRANCH }}: x86_64 (push) Has been cancelled
build / release (push) Has been cancelled
2026-02-26 22:00:37 +03:00
86de3531ad custom.d: Fix --payload 2026-02-21 13:56:40 +03:00
6d84a9f45a build: Set name for main job 2026-02-21 08:03:29 +03:00
8b5ee33e7e Bump version to v0.9.20260221
Some checks failed
build / build (arm_cortex-a8_vfpv3, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a8_vfpv3, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_neon, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_neon, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_vfpv3-d16, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_fa526, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_fa526, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_xscale, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_xscale, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips64_octeonplus, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips64_octeonplus, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_24kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_24kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_4kec, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_mips32, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_mips32, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc_24kf, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc_24kf, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_74kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_74kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_mips32, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_mips32, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (riscv64_generic, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (x86_64, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (x86_64, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / release (push) Has been cancelled
2026-02-21 07:57:27 +03:00
c67ba35838 makefile: Downgrade UPX to v4.2.4 2026-02-21 07:56:24 +03:00
52fec6272f luci: updater: Rename button and title 2026-02-21 07:43:46 +03:00
34d6ea3980 diag: dwc: Fix check downloaded dpi suites 2026-02-21 07:31:59 +03:00
dceaabaeed makefile: Add TARGET_LDFLAGS for luajit2 compile 2026-02-13 16:17:34 +03:00
243e83444b luci: diag: Disable show recommendations 2026-02-13 14:58:33 +03:00
61924fd3ea diag: dwc: Fix check DPI suites 2026-02-13 14:57:28 +03:00
47a0b7516d diag: dwc: Download suites from hyperion-cs.github.io 2026-02-13 13:27:02 +03:00
c12a302305 Bump version to v0.9.20260212
Some checks failed
build / build (arm_cortex-a8_vfpv3, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a8_vfpv3, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_neon, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_neon, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_cortex-a9_vfpv3-d16, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_fa526, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_fa526, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_xscale, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (arm_xscale, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips64_octeonplus, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips64_octeonplus, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_24kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_24kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_4kec, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_mips32, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mips_mips32, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc_24kf, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_24kc_24kf, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_74kc, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_74kc, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_mips32, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (mipsel_mips32, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (riscv64_generic, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (x86_64, ${{ needs.var.outputs.APK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / build (x86_64, ${{ needs.var.outputs.IPK_BRANCH }}, ${{ needs.check.outputs.test_build == 'true' || needs.check.outputs.fake_build == 'true' }}) (push) Has been cancelled
build / release (push) Has been cancelled
2026-02-12 22:04:00 +03:00
2293153237 makefile: fix fread inf loop
src: 9aaa419f68
2026-02-12 22:03:22 +03:00
6fdea816f7 makefile: Add option --catch-sigsegv for UPX
src: https://github.com/upx/upx/issues/911#issuecomment-3362426407
2026-02-12 21:06:21 +03:00
f8d46a75cf makefile: Disable strip 2026-02-12 16:00:13 +03:00
130aed31c6 makefile: Fix version inside binaries 2026-02-12 15:31:33 +03:00
25af514c9b config: Fix blob in v1_by_AnonymTsk 2026-02-08 15:14:32 +03:00
14 changed files with 121 additions and 80 deletions

View File

@ -116,12 +116,13 @@ jobs:
- id: set
run: |
echo "IPK_BRANCH=v24.10.5" >> "$GITHUB_OUTPUT"
echo "APK_BRANCH=v25.12.0-rc2" >> "$GITHUB_OUTPUT"
echo "APK_BRANCH=v25.12.0" >> "$GITHUB_OUTPUT"
echo "XXX_BRANCH=SNAPSHOT" >> "$GITHUB_OUTPUT"
build:
needs: [ check, var ]
#if: needs.check.outputs.is_active == 'true'
name: "${{ matrix.branch }}: ${{ matrix.arch }}"
runs-on: ubuntu-24.04
strategy:
fail-fast: false

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-zapret2
PKG_VERSION:=0.9.20260208
PKG_VERSION:=0.9.20260307
PKG_RELEASE:=1
PKG_LICENSE:=MIT
PKG_MAINTAINER:=remittor <https://github.com/remittor>

View File

@ -43,7 +43,7 @@ return baseclass.extend({
if (dns_ip && dns_ip != 'default') {
cmd.push(...[ '-d', dns_ip.trim() ]);
}
cmd.push('-R'); // show recommendations
//cmd.push('-R'); // show recommendations
return tools.execAndRead({
cmd: cmd,
log: '/tmp/'+tools.appName+'_dwc.log',

View File

@ -26,7 +26,7 @@ return baseclass.extend({
'https://github.com/bol-van/zapret2/blob/master/init.d/custom.d.examples.linux/50-stun4all',
'https://github.com/bol-van/zapret2/tree/master/init.d/custom.d.examples.linux'
],
nfqws_opt_url : 'https://github.com/remittor/zapret-openwrt/discussions/',
nfqws_opt_url : 'https://uralgit.ru/ural/zapret-openwrt/discussions/',
autoHostListFN : '/opt/zapret2/ipset/zapret-hosts-auto.txt',
autoHostListDbgFN : '/opt/zapret2/ipset/zapret-hosts-auto-debug.log',

View File

@ -378,9 +378,9 @@ return view.extend({
btn_diag.onclick = ui.createHandlerFn(this, () => { diagnost.openDiagnostDialog(this.pkg_arch) });
layout_append('Diagnostic tools', null, [ btn_diag ] );
let btn_update = create_btn('btn_update', btn_style_action, _('Update'));
let btn_update = create_btn('btn_update', btn_style_action, _('Upgrade…'));
btn_update.onclick = ui.createHandlerFn(this, () => { updater.openUpdateDialog(this.pkg_arch) });
layout_append(_('Update package'), null, [ btn_update ] );
layout_append(_('Upgrading the package'), null, [ btn_update ] );
let elems = {
"status": status_string,
@ -416,7 +416,7 @@ return view.extend({
}
let url1 = 'https://github.com/bol-van/'+tools.appName;
let url2 = 'https://github.com/remittor/zapret-openwrt';
let url2 = 'https://uralgit.ru/ural/zapret-openwrt';
return E([
E('h2', { 'class': 'fade-in' }, page_title),

View File

@ -17,7 +17,7 @@ const btn_style_success = 'btn cbi-button-success important';
const fn_update_pkg_sh = '/opt/'+tools.appName+'/update-pkg.sh';
return baseclass.extend({
releasesUrlPrefix : 'https://raw.githubusercontent.com/remittor/zapret-openwrt/gh-pages/releases/',
releasesUrlPrefix : 'https://uralgit.ru/ural/zapret-openwrt/raw/branch/gh-pages/releases/',
appendLog: function(msg, end = '\n')
{
@ -192,7 +192,7 @@ return baseclass.extend({
this.setStage(0);
ui.showModal(_('Check for updates and install'), [
ui.showModal(_('Check for upgrades and installation'), [
E('div', { 'class': 'cbi-section' }, [
exclude_prereleases,
E('br'), E('br'),

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=zapret2
PKG_VERSION:=0.9.20260208
PKG_VERSION:=0.9.20260307
PKG_RELEASE:=1
PKG_MAINTAINER:=bol-van
@ -14,8 +14,8 @@ PKG_LICENSE_FILES:=docs/LICENSE.txt
PKG_SOURCE_URL:=https://github.com/bol-van/zapret2.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=8f316ae1a203de6a7087a51d253c95175445093e
PKG_SOURCE_DATE:=2026-02-08
PKG_SOURCE_VERSION:=d3b3011000f103c5af161cc4e3167e80fd6928a2
PKG_SOURCE_DATE:=2026-03-07
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_SOURCE_URL:=https://github.com/bol-van/zapret2/archive/refs/tags/v$(PKG_VERSION).tar.gz?
@ -53,7 +53,10 @@ else
LUA_LIBRARY:=-L$(STAGING_DIR)/usr/lib -llua$(LUA_VER)
endif
UPX_VER:=5.1.0
UPX_VER:=4.2.4
ifneq ($(filter riscv64,$(ARCH)),)
UPX_VER:=5.1.0
endif
UPX_URL:=https://github.com/upx/upx/releases/download/v$(UPX_VER)
UPX_URL_FILE:=upx-$(UPX_VER)-amd64_linux.tar.xz
UPX_TAR:=$(PKG_NAME)-$(UPX_URL_FILE)
@ -132,13 +135,22 @@ ifeq ($(HOST_ARCH),$(filter $(HOST_ARCH), x86_64 mips64))
endif
endif
MAKE_FLAGS += \
$(TARGET_CONFIGURE_OPTS) \
SOURCE_DATE_EPOCH=$(shell date +%s) \
CFLAGS="$(TARGET_CFLAGS) -DZAPRET_GH_VER=$(PKG_VERSION) -DZAPRET_GH_HASH=$(PKG_SOURCE_VERSION)" \
LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)"
RSTRIP:=:
define Build/Compile
if [ "$(LUA_JIT)" = 1 ]; then \
$(MAKE) $(PKG_JOBS) -C $(LUASRC_DIR) \
HOST_CC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_BITS)" \
CROSS="$(TARGET_CROSS)" \
XCFLAGS="-DLUAJIT_DISABLE_FFI" \
TARGET_CFLAGS="-Os -s -flto=auto $(TARGET_CFLAGS)" \
TARGET_CFLAGS="-Oz -flto=auto -ffunction-sections -fdata-sections $(TARGET_CFLAGS)" \
TARGET_LDFLAGS="-flto=auto $(TARGET_LDFLAGS)" \
TARGET_AR="$(TARGET_AR) rcus" \
BUILDMODE=static \
DESTDIR=$(LUAOUT_DIR) \
@ -156,13 +168,13 @@ define Build/Compile
TARGET_SYS=Linux \
install ; \
fi
$(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) $(TARGET_CONFIGURE_OPTS) LUA_JIT=$(LUA_JIT) LUA_CFLAGS="$(LUA_INCLUDE)" LUA_LIB="$(LUA_LIBRARY)"
$(MAKE) -C $(PKG_BUILD_DIR)/ip2net $(TARGET_CONFIGURE_OPTS)
$(MAKE) -C $(PKG_BUILD_DIR)/mdig $(TARGET_CONFIGURE_OPTS)
$(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) $(MAKE_FLAGS) LUA_JIT=$(LUA_JIT) LUA_CFLAGS="$(LUA_INCLUDE)" LUA_LIB="$(LUA_LIBRARY)"
$(MAKE) -C $(PKG_BUILD_DIR)/ip2net $(MAKE_FLAGS)
$(MAKE) -C $(PKG_BUILD_DIR)/mdig $(MAKE_FLAGS)
ifeq ($(USE_UPX),1)
@if [ -x "$(UPX_BIN)" ]; then \
echo "Packing nfqws2 with UPX"; \
$(UPX_BIN) --best --lzma $(PKG_BUILD_DIR)/$(MAKE_PATH)/nfqws2; \
$(UPX_BIN) --best --lzma --strip-relocs=0 $(PKG_BUILD_DIR)/$(MAKE_PATH)/nfqws2; \
else \
echo "WARNING: UPX not found, skipping packing"; \
fi

View File

@ -3,7 +3,7 @@
# NOTE: @ih requires nft 1.0.1+ and updated kernel version. it's confirmed to work on 5.15 (openwrt 23) and not work on 5.10 (openwrt 22)
# can override in config :
NFQWS_OPT_DESYNC_STUN="${NFQWS_OPT_DESYNC_STUN:---payload stun --lua-desync=fake:blob=0x00000000000000000000000000000000:repeats=2}"
NFQWS_OPT_DESYNC_STUN="${NFQWS_OPT_DESYNC_STUN:---payload=stun --lua-desync=fake:blob=0x00000000000000000000000000000000:repeats=2}"
alloc_dnum DNUM_STUN4ALL
alloc_qnum QNUM_STUN4ALL

View File

@ -168,7 +168,7 @@ function set_cfg_nfqws_strat
set $cfgname.config.NFQWS2_OPT="
--comment=Strategy__$strat
--blob=blob_tls_clienthello_www_google_com.bin:@/opt/zapret2/files/fake/tls_clienthello_www_google_com.bin
--blob=blob_tls_clienthello_www_google_com:@/opt/zapret2/files/fake/tls_clienthello_www_google_com.bin
--blob=blob_quic_initial_www_google_com:@/opt/zapret2/files/fake/quic_initial_www_google_com.bin
--filter-tcp=443,80

View File

@ -26,7 +26,7 @@ TARGET_LIST_FILE="$ZAP_TMP_DIR/targets"
[ -f "$TARGET_LIST_FILE" ] && rm -rf "$ZAP_TMP_DIR"
[ -f "$TARGET_LIST_FILE" ] && exit 3
CURL_TIMEOUT=5
CURL_TIMEOUT=7
CURL_MAXBODY=65536
CURL_NOCACHE='cache-control: no-cache'
CURL_NOCACHE2='pragma: no-cache'
@ -65,40 +65,39 @@ if [ -f /etc/openwrt_release ]; then
return 15
fi
fi
mkdir -p "$ZAP_TMP_DIR"
#echo 'Original sources: https://github.com/hyperion-cs/dpi-checkers'
#echo 'WEB-version: https://hyperion-cs.github.io/dpi-checkers/ru/tcp-16-20/'
TEST_SUITE='
{ id: "US.CF-01", provider: "🇺🇸 Cloudflare", times: 1, url: "https://img.wzstats.gg/cleaver/gunFullDisplay" },
{ id: "US.CF-02", provider: "🇺🇸 Cloudflare", times: 1, url: "https://genshin.jmp.blue/characters/all#" },
{ id: "US.CF-03", provider: "🇺🇸 Cloudflare", times: 1, url: "https://api.frankfurter.dev/v1/2000-01-01..2002-12-31" },
{ id: "US.CF-04", provider: "🇨🇦 Cloudflare", times: 1, url: "https://www.bigcartel.com/" },
{ id: "US.DO-01", provider: "🇺🇸 DigitalOcean", times: 2, url: "https://genderize.io/" },
{ id: "DE.HE-01", provider: "🇩🇪 Hetzner", times: 1, url: "https://j.dejure.org/jcg/doctrine/doctrine_banner.webp" },
{ id: "DE.HE-02", provider: "🇩🇪 Hetzner", times: 1, url: "https://accesorioscelular.com/tienda/css/plugins.css" },
{ id: "FI.HE-01", provider: "🇫🇮 Hetzner", times: 1, url: "https://251b5cd9.nip.io/1MB.bin" },
{ id: "FI.HE-02", provider: "🇫🇮 Hetzner", times: 1, url: "https://nioges.com/libs/fontawesome/webfonts/fa-solid-900.woff2" },
{ id: "FI.HE-03", provider: "🇫🇮 Hetzner", times: 1, url: "https://5fd8bdae.nip.io/1MB.bin" },
{ id: "FI.HE-04", provider: "🇫🇮 Hetzner", times: 1, url: "https://5fd8bca5.nip.io/1MB.bin" },
{ id: "FR.OVH-01", provider: "🇫🇷 OVH", times: 1, url: "https://eu.api.ovh.com/console/rapidoc-min.js" },
{ id: "FR.OVH-02", provider: "🇫🇷 OVH", times: 1, url: "https://ovh.sfx.ovh/10M.bin" },
{ id: "SE.OR-01", provider: "🇸🇪 Oracle", times: 1, url: "https://oracle.sfx.ovh/10M.bin" },
{ id: "DE.AWS-01", provider: "🇩🇪 AWS", times: 1, url: "https://www.getscope.com/assets/fonts/fa-solid-900.woff2" },
{ id: "US.AWS-01", provider: "🇺🇸 AWS", times: 1, url: "https://corp.kaltura.com/wp-content/cache/min/1/wp-content/themes/airfleet/dist/styles/theme.css" },
{ id: "US.GC-01", provider: "🇺🇸 Google Cloud", times: 1, url: "https://api.usercentrics.eu/gvl/v3/en.json" },
{ id: "US.FST-01", provider: "🇺🇸 Fastly", times: 1, url: "https://www.jetblue.com/footer/footer-element-es2015.js" },
{ id: "CA.FST-01", provider: "🇨🇦 Fastly", times: 1, url: "https://ssl.p.jwpcdn.com/player/v/8.40.5/bidding.js" },
{ id: "US.AKM-01", provider: "🇺🇸 Akamai", times: 1, url: "https://www.roxio.com/static/roxio/images/products/creator/nxt9/call-action-footer-bg.jpg" },
{ id: "PL.AKM-01", provider: "🇵🇱 Akamai", times: 1, url: "https://media-assets.stryker.com/is/image/stryker/gateway_1?$max_width_1410$" },
{ id: "US.CDN77-01", provider: "🇺🇸 CDN77", times: 1, url: "https://cdn.eso.org/images/banner1920/eso2520a.jpg" },
{ id: "FR.CNTB-01", provider: "🇫🇷 Contabo", times: 1, url: "https://xdmarineshop.gr/index.php?route=index" },
{ id: "NL.SW-01", provider: "🇳🇱 Scaleway", times: 1, url: "https://www.velivole.fr/img/header.jpg" },
{ id: "US.CNST-01", provider: "🇺🇸 Constant", times: 1, url: "https://cdn.xuansiwei.com/common/lib/font-awesome/4.7.0/fontawesome-webfont.woff2?v=4.7.0" }
'
TEST_SUITE_URL="https://hyperion-cs.github.io/dpi-checkers/ru/tcp-16-20/suite.json"
TEST_SUITE_FN="$ZAP_TMP_DIR/${TEST_SUITE_URL##*/}"
TEST_SUITE_HDR="$TEST_SUITE_FN.hdr"
rm -f "$TEST_SUITE_FN"
rm -f "$TEST_SUITE_HDR"
if [ "$opt_sites" = true ]; then
TEST_SUITE='
#echo "Download $TEST_SUITE_URL ..."
curl -s -L -D "$TEST_SUITE_HDR" -o "$TEST_SUITE_FN" --max-time 15 "$TEST_SUITE_URL" 2>/dev/null
if [ ! -f "$TEST_SUITE_HDR" ] || [ -z "$TEST_SUITE_HDR" ] ; then
echo "ERROR: Cannot download file \"$TEST_SUITE_URL\" (connection problem)"
return 17
fi
RESP_STATUS=$( cat "$TEST_SUITE_HDR" | head -n 1 | awk '{print $2}' )
if [ "$RESP_STATUS" != 200 ]; then
echo "ERROR: Cannot download file \"$TEST_SUITE_URL\" (status = $RESP_STATUS)"
return 18
fi
if [ ! -f "$TEST_SUITE_FN" ] || [ -z "$TEST_SUITE_FN" ] ; then
echo "ERROR: Cannot download file \"$TEST_SUITE_URL\" (resp body empty)"
return 19
fi
if [ "$(head -c 2 "$TEST_SUITE_FN" 2>/dev/null)" != "$(printf '[\n')" ]; then
echo "ERROR: incorrect format of \"$TEST_SUITE_URL\""
return 19
fi
TEST_SUITE='
gosuslugi.ru | @ | 40000 | https://gosuslugi.ru/__jsch/static/script.js
esia.gosuslugi.ru | @ | 40000 | https://esia.gosuslugi.ru/__jsch/static/script.js
gu-st.ru | | | https://gu-st.ru/portal-st/lib-assets/fonts/Lato-Regular-v3.woff2
@ -125,8 +124,13 @@ if [ "$opt_sites" = true ]; then
play.google.com | @# | 100000 | https://gstatic.com/feedback/js/help/prod/service/lazy.min.js
genderize.io | @# | 210000 | https://genderize.io
ottai.com | @ | 70000 | https://seas.static.ottai.com/ottai-website/public/images/new/home/banner/uk/banner.webp
'
'
if [ "$opt_sites" = true ]; then
CURL_TIMEOUT=7
else
CURL_TIMEOUT=7
TEST_SUITE=$( cat "$TEST_SUITE_FN" )
fi
function trim
@ -134,8 +138,6 @@ function trim
echo "$1" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
}
mkdir -p "$ZAP_TMP_DIR"
: > "$TARGET_LIST_FILE"
IDX=0
while IFS= read -r line; do
@ -151,15 +153,14 @@ while IFS= read -r line; do
continue
fi
case "$line" in
*id:*provider:*url:*)
*id*provider*thresholdBytes*url*)
IDX=$((IDX + 1))
TAG=$( printf '%s\n' "$line" | cut -d'"' -f2 )
TAG=$( printf '%s\n' "$line" | cut -d'"' -f4 )
COUNTRY="${TAG%%.*}"
PROVIDER_RAW=$( printf '%s\n' "$line" | cut -d'"' -f4 )
PROVIDER="${PROVIDER_RAW#* }"
TIMES=$( printf '%s\n' "$line" | cut -d':' -f4 | cut -d',' -f1 | tr -d ' ')
URL=$( printf '%s\n' "$line" | cut -d'"' -f6 )
echo "${IDX}|${TAG}|${COUNTRY}|${PROVIDER}|${TIMES}|${URL}" >> "$TARGET_LIST_FILE"
PROVIDER=$( printf '%s\n' "$line" | cut -d'"' -f8 )
BYTES=$( printf '%s\n' "$line" | cut -d'"' -f15 | cut -d':' -f2 | cut -d',' -f1 | tr -d ' ')
URL=$( printf '%s\n' "$line" | cut -d'"' -f20 )
echo "${IDX}|${TAG}|${COUNTRY}|${PROVIDER}|${BYTES}|${URL}" >> "$TARGET_LIST_FILE"
;;
esac
done <<EOF
@ -170,7 +171,7 @@ CURL_CON_TIMEOUT=$((CURL_TIMEOUT-2))
CURL_SPEED_TIME=$((CURL_TIMEOUT-2))
CURL_SPEED_LIMIT=1
while IFS='|' read -r ID TAG COUNTRY PROVIDER TIMES URL; do
while IFS='|' read -r ID TAG COUNTRY PROVIDER TSIZE URL; do
[ -z "$TAG" ] && continue
ID3=$( printf '%03d' "$ID" )
RANGETO=""
@ -178,14 +179,13 @@ while IFS='|' read -r ID TAG COUNTRY PROVIDER TIMES URL; do
USERAGENT="$CURL_USERAGENT"
if [ "$opt_sites" = true ]; then
FLAGS="$PROVIDER"
TSIZE="$TIMES"
[ "$TSIZE" = "" ] && TSIZE=$CURL_MAXBODY
if echo "$FLAGS" | grep -q '@'; then
RANGETO=""
else
RANGETO="--range 0-$((TSIZE - 1))"
fi
PROVIDER="$TSIZE"
PROVIDER="@"
if echo "$FLAGS" | grep -q '#'; then
REDIRECT="-L"
fi
@ -193,34 +193,47 @@ while IFS='|' read -r ID TAG COUNTRY PROVIDER TIMES URL; do
USERAGENT="curl/8.12"
fi
else
RANGETO="--range 0-$((CURL_MAXBODY - 1))"
RANGETO="--range 0-$((TSIZE - 1))"
COUNTRY=$( echo "$TAG" | cut -d. -f1 )
CNTFLAG=$( echo "$PROVIDER" | awk '{print $1}' )
fi
URL_NO_PROTO="${URL#*://}"
DOMAIN="${URL_NO_PROTO%%/*}"
URLPATH="/${URL_NO_PROTO#*/}"
[ "$URLPATH" = "/$URL_NO_PROTO" ] && URLPATH="/"
#echo "TAG=$TAG , COUNTRY=$COUNTRY , PROVIDER=$PROVIDER , DOMAIN=$DOMAIN , URL=$URL"
FNAME="$ZAP_TMP_DIR/$ID3=$TAG=$PROVIDER"
FNAME="$ZAP_TMP_DIR/$ID3=$TAG=$PROVIDER=$TSIZE"
(
echo ">>>>> Request destination IP-addr"
DST_IP=
RESOLVE_OPT=
if [ "$opt_dig" != "" ]; then
DST_IP=$( dig +time=2 +retry=1 $OPT_DIG_DNS +short "$DOMAIN" 2>/dev/null | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 )
RESP=$( dig +time=2 +retry=1 $OPT_DIG_DNS +short "$DOMAIN" 2>&1 )
echo "$RESP"
DST_IP=$( echo "$RESP" | grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1 )
else
CURL_TIMEOUTS="--connect-timeout 2 --max-time 3 --speed-time 3 --speed-limit 1"
DST_IP=$( curl -4 -I -s $CURL_TIMEOUTS -o /dev/null -w '%{remote_ip}\n' "$URL" )
CURL_TIMEOUTS="--connect-timeout 3 --max-time 4 --speed-time 4 --speed-limit 1"
RESP=$( curl -4 -I --no-progress-meter $CURL_TIMEOUTS -w '%{remote_ip}\n' "$URL" 2>&1 )
echo "$RESP"
DST_IP=$( echo "$RESP" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tail -1 )
if [ -z "$DST_IP" ]; then
DST_IP=$( curl -4 -s $CURL_TIMEOUTS -o /dev/null -r 0-0 -w '%{remote_ip}\n' "$URL" )
echo "----------------------------------"
RESP=$( curl -4 --no-progress-meter $CURL_TIMEOUTS -r 0-0 -w '%{remote_ip}\n' "$URL" 2>&1 )
echo "$RESP"
DST_IP=$( echo "$RESP" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tail -1 )
fi
fi
if [ "$DST_IP" = "" ]; then
DST_IP=$( ping -c1 "$DOMAIN" 2>/dev/null | sed -n '1s/.*(\([0-9.]*\)).*/\1/p' )
echo ">>>>> PING"
RESP=$( ping -c1 "$DOMAIN" 2>&1 )
echo "$RESP"
DST_IP=$( echo "$RESP" | sed -n '1s/.*(\([0-9.]*\)).*/\1/p' )
fi
echo ">>>>> Destination IP-addr:"
echo "$DST_IP"
[ "$DST_IP" != "" ] && RESOLVE_OPT="--resolve $DOMAIN:443:$DST_IP"
echo "$DST_IP" > "$FNAME.ip"
echo "$URL" > "$FNAME.url"
echo ">>>>> Download target body"
curl "$URL" \
$RESOLVE_OPT \
$REDIRECT \
@ -247,9 +260,8 @@ printf '%s\n' "$ZAP_TMP_DIR"/*.log | sort | while IFS= read -r file; do
ID=$( echo "$FILENAME" | cut -d= -f1)
TAG=$( echo "$FILENAME" | cut -d= -f2)
PROVIDER=$(echo "$FILENAME" | cut -d= -f3 )
TSIZE=$(echo "$FILENAME" | cut -d= -f4 )
FNAME="$ZAP_TMP_DIR/$FILENAME"
REQ_SIZE=$CURL_MAXBODY
[ "$opt_sites" = true ] && REQ_SIZE="$PROVIDER"
BODY_SIZE=0
[ -f "$FNAME.body" ] && BODY_SIZE=$( wc -c < "$FNAME.body" )
IPADDR="x.x.x.x"
@ -265,7 +277,7 @@ printf '%s\n' "$ZAP_TMP_DIR"/*.log | sort | while IFS= read -r file; do
elif [ ! -s "$FNAME.body" ]; then
status="Possibly detected"
else
if [ $BODY_SIZE -lt $REQ_SIZE ]; then
if [ $BODY_SIZE -lt $TSIZE ]; then
status="Failed (recv $BODY_SIZE bytes)"
res=5
else

View File

@ -1,6 +1,10 @@
#!/bin/sh /etc/rc.common
# Copyright (c) 2024 remittor
# check if script is running during the image creation process (Image Builder).
# $IPKG_INSTROOT is used by opkg, $ROOT is used by apk:
[ -n "$IPKG_INSTROOT" ] || [ -n "$ROOT" ] && exit 0
USE_PROCD=1
# after network
START=21

View File

@ -23,6 +23,13 @@ vk.ru
vk.com
yandex.ru
ya.ru
####################################
max.ru
web.max.ru
st.max.ru
calls.okcdn.ru
i.oneme.ru
ws-api.oneme.ru
#################################### Epicgames
easy.ac
fab.com

View File

@ -1,4 +1,9 @@
127.0.0.0/8
10.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.168.0.0/16
169.254.0.0/16
100.64.0.0/10
::1
fc00::/7
fe80::/10

View File

@ -54,10 +54,10 @@ fi
ZAP_CPU_ARCH="$DISTRIB_ARCH"
if [ $ZAPRET_CFG_NAME = "zapret" ]; then
ZAP_REL_URL="https://raw.githubusercontent.com/remittor/zapret-openwrt/gh-pages/releases/releases_zap1_$ZAP_CPU_ARCH.json"
ZAP_REL_URL="https://uralgit.ru/ural/zapret-openwrt/raw/branch/gh-pages/releases/releases_zap1_$ZAP_CPU_ARCH.json"
fi
if [ $ZAPRET_CFG_NAME = "zapret2" ]; then
ZAP_REL_URL="https://raw.githubusercontent.com/remittor/zapret-openwrt/gh-pages/releases/releases_zap2_$ZAP_CPU_ARCH.json"
ZAP_REL_URL="https://uralgit.ru/ural/zapret-openwrt/raw/branch/gh-pages/releases/releases_zap2_$ZAP_CPU_ARCH.json"
fi
CURL_TIMEOUT=5
CURL_HEADER1="Accept: application/json"
@ -551,7 +551,7 @@ if [ "$opt_update" != "" ]; then
if [ "$PKG_MGR" != "apk" ]; then
opkg install --force-reinstall "$ZAP_PKG_BASE_FN"
else
apk add --allow-untrusted --upgrade "$ZAP_PKG_BASE_FN"
apk add --allow-untrusted --upgrade --force-non-repository "$ZAP_PKG_BASE_FN"
fi
if [ $? -ne 0 ]; then
echo "ERROR: Failed to install package $ZAP_PKG_BASE_FN"
@ -560,7 +560,7 @@ if [ "$opt_update" != "" ]; then
if [ "$PKG_MGR" != "apk" ]; then
opkg install --force-reinstall "$ZAP_PKG_LUCI_FN"
else
apk add --allow-untrusted --upgrade "$ZAP_PKG_LUCI_FN"
apk add --allow-untrusted --upgrade --force-non-repository "$ZAP_PKG_LUCI_FN"
fi
if [ $? -ne 0 ]; then
echo "ERROR: Failed to install package $ZAP_PKG_LUCI_FN"