Skip to content

Commit f58bd26

Browse files
committed
chore: remove ebpf because core not support anymore
1 parent c199628 commit f58bd26

File tree

6 files changed

+1483
-1572
lines changed

6 files changed

+1483
-1572
lines changed

luci-app-openclash/luasrc/model/cbi/openclash/settings.lua

-12
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,6 @@ o:value("direct", translate("Direct Proxy Mode"))
102102
o:value("script", translate("Script Proxy Mode (Tun Core Only)"))
103103
o.default = "rule"
104104

105-
-- eBPF support setting
106-
o = s:taboption("op_mode", ListValue, "ebpf_action_interface", translate("eBPF Action Interface"))
107-
o.description = translate("Select outbound interface for eBPF to apply traffic management").."<br>"..font_red..bold_on.."1."..translate("Warning! Highly experimental configs. Will disable default firewall traffic inbound").."<br>2."..translate("Needs kernel support for eBPF functionality. And it takes about 130MB memory to starts").."<br>3."..translate("Might improve direct connection performance").."<br>4."..translate("Only support redir-host-tun")..bold_off..font_off
108-
o:value("0", translate("Disable"))
109-
o.default = "0"
110-
local interfaces = SYS.exec("ls -l /sys/class/net/ 2>/dev/null |awk '{print $9}' 2>/dev/null")
111-
for interface in string.gmatch(interfaces, "%S+") do
112-
o:value(interface)
113-
end
114-
o:depends{en_mode = "redir-host-tun"}
115-
116-
117105
o = s:taboption("op_mode", Value, "delay_start", translate("Delay Start (s)"))
118106
o.description = translate("Delay Start On Boot")
119107
o.default = "0"

luci-app-openclash/po/zh-cn/openclash.zh-cn.po

+1-25
Original file line numberDiff line numberDiff line change
@@ -3562,28 +3562,4 @@ msgid "LAN Interface Name"
35623562
msgstr "LAN 接口名称"
35633563

35643564
msgid "Select LAN Interface Name"
3565-
msgstr "指定正确的 LAN 接口名称"
3566-
3567-
msgid "Select outbound interface for eBPF to apply traffic management"
3568-
msgstr "为 eBPF 指定流量出站接口"
3569-
3570-
msgid "Warning! Highly experimental configs. Will disable default firewall traffic inbound"
3571-
msgstr "警告!高度实验性的配置。将禁用默认防火墙入站流量"
3572-
3573-
msgid "Needs kernel support for eBPF functionality. And it takes about 130MB memory to starts"
3574-
msgstr "需要内核支持 eBPF 功能。启动时需要大约 130MB 内存"
3575-
3576-
msgid "Might improve direct connection performance"
3577-
msgstr "可提高直连性能"
3578-
3579-
msgid "Only support redir-host-tun"
3580-
msgstr "仅支持 redir-host(TUN)模式"
3581-
3582-
msgid "eBPF Action Interface"
3583-
msgstr "eBPF 出站接口"
3584-
3585-
msgid "Error: intend to enable ebpf interface, but no kernel support found. Ignoring..."
3586-
msgstr "错误:固件系统不支持 eBPF,跳过设置..."
3587-
3588-
msgid "Tip: Escaping firewall settings due to eBPF interface:"
3589-
msgstr "提示:因启用 eBPF 已跳过防火墙设置,eBPF 接口:"
3565+
msgstr "指定正确的 LAN 接口名称"

luci-app-openclash/root/etc/config/openclash

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ config openclash 'config'
2828
option servers_update '0'
2929
option log_level '0'
3030
option proxy_mode 'rule'
31-
option ebpf_action_interface '0'
3231
option intranet_allowed '1'
3332
option enable_udp_proxy '1'
3433
option disable_udp_quic '1'

0 commit comments

Comments
 (0)