-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathConfigPlugin.py
More file actions
21 lines (15 loc) · 821 Bytes
/
ConfigPlugin.py
File metadata and controls
21 lines (15 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from Plugin import PluginManager
@PluginManager.registerTo('ConfigPlugin')
class ConfigPlugin:
def createArguments(self):
nameservers = [
'https://doh.securedns.eu/dns-query',
'https://doh-de.blahdns.com/dns-query',
'https://doh-jp.blahdns.com/dns-query',
'https://doh-ch.blahdns.com/dns-query',
'https://doh.dnswarden.com/uncensored',
]
group = self.parser.add_argument_group('DNS plugin')
group.add_argument('--dns_nameservers', help='Nameservers for DNS plugin', default=nameservers, metavar='address', nargs='*')
group.add_argument('--dns_configure', help='Configure resolver with system config for DNS plugin', action='store_true', default=False)
return super(ConfigPlugin, self).createArguments()