Skip to content

Commit bb3bf92

Browse files
Patrick Guclaude
andcommitted
fix: make enable_meta_sniffer behavior consistent with CUSTOM_FALLBACK_FILTER
CUSTOM_FALLBACK_FILTER and ENABLE_META_SNIFFER have the same frontend interaction: both use a checkbox to control whether to use YAML custom config. However, their default behaviors are inconsistent when unchecked: - CUSTOM_FALLBACK_FILTER=0: respects YAML config - ENABLE_META_SNIFFER=0: forces sniffer to be disabled This fix makes them consistent: when unchecked, always respect the YAML config file settings. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 77d1a5f commit bb3bf92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

luci-app-openclash/root/usr/share/openclash/yml_change.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ begin
501501
Value['sniffer'].merge!(custom_sniffer['sniffer']) if custom_sniffer && custom_sniffer['sniffer']
502502
end
503503
else
504-
Value['sniffer']['enable'] = false if Value.key?('sniffer')
504+
# enable_sniffer 未勾选时,保留原始配置文件中的 sniffer 设置
505505
end
506506
507507
if en_mode_tun != '0' || ['2', '3'].include?(ipv6_mode)

0 commit comments

Comments
 (0)