Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代理为回国模式时 允许ACL使用全局代理模式 #33485

Open
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

1euk0cyte
Copy link
Contributor

代理是回国模式时,ACL中使用全局模式应该是一个合理的use case。

在代理回国模式/ACL设置全局模式时 首次添加能够正确保存acl信息到dbus
但在refresh_acl_html时加载已经存储的acl信息

if ($("#ss_basic_mode").val() == 6) {
			code += '<option value="0">不通过代理</option>';
			code += '<option value="5">全局代理模式</option>';
			code += '<option value="6">回国模式</option>';
		}

导致html element里的ACL table没有正确加载全局代理的option

此时再重启插件就会导致save()dbus["ss_acl_mode_" + rowid] = E("ss_acl_mode_" + rowid).value;拿到一个空值 导致ss_acl_mode被从dbus中移除,ACL不生效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant