Comments (5)
guest-lan
对应的 firewall zone
名称是?
与在「网络 - 接口」下有对应的接口名称一样吗?
from luci-app-shadowsocks.
@cokebar 试一下这个
diff --git a/files/luci/model/cbi/shadowsocks/access-control.lua b/files/luci/model/cbi/shadowsocks/access-control.lua
index f993a3d..0e1080a 100644
--- a/files/luci/model/cbi/shadowsocks/access-control.lua
+++ b/files/luci/model/cbi/shadowsocks/access-control.lua
@@ -44,9 +44,9 @@ s = m:section(TypedSection, "access_control", translate("Zone LAN"))
s.anonymous = true
o = s:option(MultiValue, "lan_ifaces", translate("Interface"))
-for _, zone in ipairs(fwm:get_zones()) do
- if string.find(zone:name(), "wan") ~= 1 then
- local net = nwm:get_network(zone:name())
+for _, net in ipairs(nwm:get_networks()) do
+ if net:name() ~= "loopback" and string.find(net:name(), "wan") ~= 1 then
+ net = nwm:get_network(net:name())
local device = net and net:get_interface()
if device then
o:value(device:name(), device:get_i18n())
from luci-app-shadowsocks.
名字改一样的有了
from luci-app-shadowsocks.
@cokebar 请帮忙试一下上面的 patch 是否可以解决.
文件位置 /usr/lib/lua/luci/model/cbi/shadowsocks/access-control.lua
from luci-app-shadowsocks.
This patch fixed the problem. Thanks.
from luci-app-shadowsocks.
Related Issues (20)
- Access Control coundn't choose /etc/chinadns_chnroute.txt HOT 1
- 2.x版将TCP与UDP服务器合并不太合理 HOT 2
- 白名单列表不能选择chinadns.txt感觉非常不合理,求修复 HOT 1
- V2ray
- Why ss-subscribe will cause shadowsocks process restarting
- 订阅模式的节点的服务器配置优化
- 订阅SS节点老是失败 HOT 1
- RPCError HOT 2
- 2.1.0版更改透明代理主服务器无效 HOT 2
- openwrt 22.03 RC4 can't run server
- openwrt 22.03 RC4下依赖包kmod-ipt-nat未默认安装,fw4有兼容性问题 HOT 2
- OpenWrt 21.02.3 下菜单汉化不全 HOT 1
- Your project is included in awesome-vpn/wiki/Routers
- Subscription doesn't work HOT 2
- 是否不支持ss+v2ray plugin+websocket (HTTP) + TLS +CDN方式? HOT 1
- WARNING: Makefile 'package/luci-app-shadowsocks/Makefile' has a build dependency on 'po2lmo/host', which does not exist HOT 1
- 汉化包在哪? HOT 1
- openwrt 22 一直显示未运行 HOT 2
- [Update Request] Please update firewall rules to resolve compatibility issue with openwrt 22.03 HOT 4
- 求助,ss_tunnel配置dns转发,tcp可用,udp不可用
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luci-app-shadowsocks.