mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: remove kmod-nft-tproxy dependency
This commit is contained in:
parent
963e5bc775
commit
ecbc768fc4
@ -1,11 +1,11 @@
|
||||
Package: ua3f
|
||||
Version: 1.0.0-1
|
||||
Depends: luci-compat, ipset, iptables, kmod-nft-tproxy, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack
|
||||
Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack
|
||||
Source: /feed/openwrt
|
||||
SourceName: UA3F
|
||||
License: GPL-3.0-only
|
||||
Section: net
|
||||
SourceDateEpoch: 1711267200
|
||||
Architecture: all
|
||||
Installed-Size: 3573760
|
||||
Installed-Size: 4362240
|
||||
Description: Advanced HTTP User-Agent Rewriting Tool.
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
Package: ua3f
|
||||
Version: 1.0.0-1
|
||||
Depends: luci-compat, ipset, iptables, kmod-nft-tproxy, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack
|
||||
Depends: luci-compat, ipset, iptables, iptables-mod-tproxy, iptables-mod-extra, iptables-mod-nat-extra, kmod-ipt-conntrack
|
||||
Source: /feed/openwrt
|
||||
SourceName: UA3F
|
||||
License: GPL-3.0-only
|
||||
Section: net
|
||||
SourceDateEpoch: 1711267200
|
||||
Architecture: all
|
||||
Installed-Size: 3706880
|
||||
Installed-Size: 4362240
|
||||
Description: Advanced HTTP User-Agent Rewriting Tool.
|
||||
|
||||
@ -28,7 +28,7 @@ define Package/ua3f
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
TITLE:=A SOCKS5 Server for User-Agent Rewriting
|
||||
URL:=https://github.com/SunBK201/UA3F
|
||||
DEPENDS:=$(GO_ARCH_DEPENDS) +luci-compat +ipset +iptables +kmod-nft-tproxy +iptables-mod-tproxy +iptables-mod-extra +iptables-mod-nat-extra +kmod-ipt-conntrack
|
||||
DEPENDS:=$(GO_ARCH_DEPENDS) +luci-compat +ipset +iptables +iptables-mod-tproxy +iptables-mod-extra +iptables-mod-nat-extra +kmod-ipt-conntrack
|
||||
endef
|
||||
|
||||
define Package/ua3f/description
|
||||
|
||||
@ -30,7 +30,17 @@ try_modprobe() { command -v modprobe >/dev/null 2>&1 && modprobe "$1" 2>/dev/nul
|
||||
|
||||
nft_available() { command -v nft >/dev/null 2>&1; }
|
||||
ipt_available() { command -v iptables >/dev/null 2>&1; }
|
||||
opkg_available() { command -v opkg >/dev/null 2>&1; }
|
||||
detect_backend() {
|
||||
if opkg_available; then
|
||||
if opkg list-installed kmod-nft-tproxy | grep -q 'kmod-nft-tproxy'; then
|
||||
FW_BACKEND="nft"
|
||||
return 0
|
||||
else
|
||||
FW_BACKEND="ipt"
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
if nft_available; then
|
||||
FW_BACKEND="nft"
|
||||
return 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user