Skip to content

Commit

Permalink
chore: remove ebpf because core not support anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
vernesong committed Aug 20, 2024
1 parent c199628 commit f58bd26
Show file tree
Hide file tree
Showing 6 changed files with 1,483 additions and 1,572 deletions.
12 changes: 0 additions & 12 deletions luci-app-openclash/luasrc/model/cbi/openclash/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,18 +102,6 @@ o:value("direct", translate("Direct Proxy Mode"))
o:value("script", translate("Script Proxy Mode (Tun Core Only)"))
o.default = "rule"

-- eBPF support setting
o = s:taboption("op_mode", ListValue, "ebpf_action_interface", translate("eBPF Action Interface"))
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
o:value("0", translate("Disable"))
o.default = "0"
local interfaces = SYS.exec("ls -l /sys/class/net/ 2>/dev/null |awk '{print $9}' 2>/dev/null")
for interface in string.gmatch(interfaces, "%S+") do
o:value(interface)
end
o:depends{en_mode = "redir-host-tun"}


o = s:taboption("op_mode", Value, "delay_start", translate("Delay Start (s)"))
o.description = translate("Delay Start On Boot")
o.default = "0"
Expand Down
26 changes: 1 addition & 25 deletions luci-app-openclash/po/zh-cn/openclash.zh-cn.po
Original file line number Diff line number Diff line change
Expand Up @@ -3562,28 +3562,4 @@ msgid "LAN Interface Name"
msgstr "LAN 接口名称"

msgid "Select LAN Interface Name"
msgstr "指定正确的 LAN 接口名称"

msgid "Select outbound interface for eBPF to apply traffic management"
msgstr "为 eBPF 指定流量出站接口"

msgid "Warning! Highly experimental configs. Will disable default firewall traffic inbound"
msgstr "警告!高度实验性的配置。将禁用默认防火墙入站流量"

msgid "Needs kernel support for eBPF functionality. And it takes about 130MB memory to starts"
msgstr "需要内核支持 eBPF 功能。启动时需要大约 130MB 内存"

msgid "Might improve direct connection performance"
msgstr "可提高直连性能"

msgid "Only support redir-host-tun"
msgstr "仅支持 redir-host(TUN)模式"

msgid "eBPF Action Interface"
msgstr "eBPF 出站接口"

msgid "Error: intend to enable ebpf interface, but no kernel support found. Ignoring..."
msgstr "错误:固件系统不支持 eBPF,跳过设置..."

msgid "Tip: Escaping firewall settings due to eBPF interface:"
msgstr "提示:因启用 eBPF 已跳过防火墙设置,eBPF 接口:"
msgstr "指定正确的 LAN 接口名称"
1 change: 0 additions & 1 deletion luci-app-openclash/root/etc/config/openclash
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ config openclash 'config'
option servers_update '0'
option log_level '0'
option proxy_mode 'rule'
option ebpf_action_interface '0'
option intranet_allowed '1'
option enable_udp_proxy '1'
option disable_udp_quic '1'
Expand Down
Loading

1 comment on commit f58bd26

@xuanranran
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makefile版本更新一下

Please sign in to comment.