@@ -205,14 +205,14 @@ custom_fallback_filter.wrap = "off"
205205custom_fallback_filter :depends (" custom_fallback_filter" , " 1" )
206206
207207function custom_fallback_filter .cfgvalue (self , section )
208- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" ) or " "
208+ return fs .readfile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" ) or " "
209209end
210210function custom_fallback_filter .write (self , section , value )
211211 if value then
212212 value = value :gsub (" \r\n ?" , " \n " )
213- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" )
213+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" )
214214 if value ~= old_value then
215- NXFS .writefile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" , value )
215+ fs .writefile (" /etc/openclash/custom/openclash_custom_fallback_filter.yaml" , value )
216216 end
217217 end
218218end
@@ -237,14 +237,14 @@ custom_fake_black.wrap = "off"
237237custom_fake_black :depends (" custom_fakeip_filter" , " 1" )
238238
239239function custom_fake_black .cfgvalue (self , section )
240- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_fake_filter.list" ) or " "
240+ return fs .readfile (" /etc/openclash/custom/openclash_custom_fake_filter.list" ) or " "
241241end
242242function custom_fake_black .write (self , section , value )
243243 if value then
244244 value = value :gsub (" \r\n ?" , " \n " )
245- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_fake_filter.list" )
245+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_fake_filter.list" )
246246 if value ~= old_value then
247- NXFS .writefile (" /etc/openclash/custom/openclash_custom_fake_filter.list" , value )
247+ fs .writefile (" /etc/openclash/custom/openclash_custom_fake_filter.list" , value )
248248 end
249249 end
250250end
@@ -261,14 +261,14 @@ custom_domain_dns_policy.wrap = "off"
261261custom_domain_dns_policy :depends (" custom_name_policy" , " 1" )
262262
263263function custom_domain_dns_policy .cfgvalue (self , section )
264- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" ) or " "
264+ return fs .readfile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" ) or " "
265265end
266266function custom_domain_dns_policy .write (self , section , value )
267267 if value then
268268 value = value :gsub (" \r\n ?" , " \n " )
269- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" )
269+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" )
270270 if value ~= old_value then
271- NXFS .writefile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" , value )
271+ fs .writefile (" /etc/openclash/custom/openclash_custom_domain_dns_policy.list" , value )
272272 end
273273 end
274274end
@@ -284,14 +284,14 @@ custom_proxy_server_dns_policy.wrap = "off"
284284custom_proxy_server_dns_policy :depends (" custom_proxy_server_policy" , " 1" )
285285
286286function custom_proxy_server_dns_policy .cfgvalue (self , section )
287- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" ) or " "
287+ return fs .readfile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" ) or " "
288288end
289289function custom_proxy_server_dns_policy .write (self , section , value )
290290 if value then
291291 value = value :gsub (" \r\n ?" , " \n " )
292- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" )
292+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" )
293293 if value ~= old_value then
294- NXFS .writefile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" , value )
294+ fs .writefile (" /etc/openclash/custom/openclash_custom_proxy_server_dns_policy.list" , value )
295295 end
296296 end
297297end
@@ -307,14 +307,14 @@ custom_hosts.wrap = "off"
307307custom_hosts :depends (" custom_host" , " 1" )
308308
309309function custom_hosts .cfgvalue (self , section )
310- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_hosts.list" ) or " "
310+ return fs .readfile (" /etc/openclash/custom/openclash_custom_hosts.list" ) or " "
311311end
312312function custom_hosts .write (self , section , value )
313313 if value then
314314 value = value :gsub (" \r\n ?" , " \n " )
315- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_hosts.list" )
315+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_hosts.list" )
316316 if value ~= old_value then
317- NXFS .writefile (" /etc/openclash/custom/openclash_custom_hosts.list" , value )
317+ fs .writefile (" /etc/openclash/custom/openclash_custom_hosts.list" , value )
318318 end
319319 end
320320end
@@ -374,14 +374,14 @@ sniffer_custom.rows = 20
374374sniffer_custom .wrap = " off"
375375
376376function sniffer_custom .cfgvalue (self , section )
377- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" ) or " "
377+ return fs .readfile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" ) or " "
378378end
379379function sniffer_custom .write (self , section , value )
380380 if value then
381381 value = value :gsub (" \r\n ?" , " \n " )
382- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" )
382+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" )
383383 if value ~= old_value then
384- NXFS .writefile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" , value )
384+ fs .writefile (" /etc/openclash/custom/openclash_custom_sniffer.yaml" , value )
385385 end
386386 end
387387end
@@ -466,14 +466,14 @@ custom_rules.rows = 20
466466custom_rules .wrap = " off"
467467
468468function custom_rules .cfgvalue (self , section )
469- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_rules.list" ) or " "
469+ return fs .readfile (" /etc/openclash/custom/openclash_custom_rules.list" ) or " "
470470end
471471function custom_rules .write (self , section , value )
472472 if value then
473473 value = value :gsub (" \r\n ?" , " \n " )
474- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_rules.list" )
474+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_rules.list" )
475475 if value ~= old_value then
476- NXFS .writefile (" /etc/openclash/custom/openclash_custom_rules.list" , value )
476+ fs .writefile (" /etc/openclash/custom/openclash_custom_rules.list" , value )
477477 end
478478 end
479479end
@@ -486,14 +486,14 @@ custom_rules_2.rows = 20
486486custom_rules_2 .wrap = " off"
487487
488488function custom_rules_2 .cfgvalue (self , section )
489- return NXFS .readfile (" /etc/openclash/custom/openclash_custom_rules_2.list" ) or " "
489+ return fs .readfile (" /etc/openclash/custom/openclash_custom_rules_2.list" ) or " "
490490end
491491function custom_rules_2 .write (self , section , value )
492492 if value then
493493 value = value :gsub (" \r\n ?" , " \n " )
494- local old_value = NXFS .readfile (" /etc/openclash/custom/openclash_custom_rules_2.list" )
494+ local old_value = fs .readfile (" /etc/openclash/custom/openclash_custom_rules_2.list" )
495495 if value ~= old_value then
496- NXFS .writefile (" /etc/openclash/custom/openclash_custom_rules_2.list" , value )
496+ fs .writefile (" /etc/openclash/custom/openclash_custom_rules_2.list" , value )
497497 end
498498 end
499499end
0 commit comments