File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,26 @@ const tun = {
290
290
"dns-hijack" : [ "any:53" , "tcp://any:53" ] ,
291
291
} ;
292
292
293
+ // Proxy Providers
294
+
295
+ const proxyProviderUrls = [ ] ;
296
+
297
+ const proxyProviderDefaults = {
298
+ type : "http" ,
299
+ interval : 86400 ,
300
+ proxy : "PROXY" ,
301
+ } ;
302
+
303
+ const proxyProviders = Object . fromEntries (
304
+ proxyProviderUrls . map ( ( url , index ) => [
305
+ `provider${ index + 1 } ` ,
306
+ {
307
+ ...proxyProviderDefaults ,
308
+ url,
309
+ } ,
310
+ ] )
311
+ ) ;
312
+
293
313
// Proxy Groups
294
314
295
315
const proxyGroupDefaults = {
@@ -683,6 +703,7 @@ function main(config) {
683
703
hosts,
684
704
sniffer,
685
705
tun,
706
+ "proxy-providers" : proxyProviders ,
686
707
"proxy-groups" : proxyGroups ,
687
708
rules,
688
709
"rule-providers" : ruleProviders ,
You can’t perform that action at this time.
0 commit comments