diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua index 89543b9f5..bf2c38361 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/global.lua @@ -143,12 +143,16 @@ if (has_singbox or has_xray) and #nodes_table > 0 then end local function get_write(shunt_node_id, option) return function(self, section, value) - m:set(shunt_node_id, option, value) + if s.fields["tcp_node"]:formvalue(section) == shunt_node_id then + m:set(shunt_node_id, option, value) + end end end local function get_remove(shunt_node_id, option) return function(self, section) - m:del(shunt_node_id, option) + if s.fields["tcp_node"]:formvalue(section) == shunt_node_id then + m:del(shunt_node_id, option) + end end end if #normal_list > 0 then diff --git a/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm b/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm index a00b943e3..304f25434 100644 --- a/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm +++ b/luci-app-passwall/luasrc/view/passwall/node_list/node_list.htm @@ -26,18 +26,12 @@ table td, .table .td { } ._now_use { - background: #5e72e445 !important; + color: red !important; } .ping a:hover{ text-decoration : underline; } - -@media (prefers-color-scheme: dark) { - ._now_use { - background: #4a90e2 !important; - } -}