mirror of
https://github.com/honmashironeko/ProxyCat.git
synced 2025-06-21 10:23:01 +00:00
Update config.py
This commit is contained in:
parent
cee650f6a3
commit
e95360326a
@ -6,7 +6,7 @@ DEFAULT_CONFIG = {
|
|||||||
'interval': 300,
|
'interval': 300,
|
||||||
'username': '',
|
'username': '',
|
||||||
'password': '',
|
'password': '',
|
||||||
'use_getip': True,
|
'use_getip': False,
|
||||||
'proxy_file': 'ip.txt',
|
'proxy_file': 'ip.txt',
|
||||||
'check_proxies' : True
|
'check_proxies' : True
|
||||||
}
|
}
|
||||||
@ -14,4 +14,4 @@ DEFAULT_CONFIG = {
|
|||||||
def load_config(config_file='config.ini'):
|
def load_config(config_file='config.ini'):
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(config_file, encoding='utf-8')
|
config.read(config_file, encoding='utf-8')
|
||||||
return {k: v for k, v in config['SETTINGS'].items()}
|
return {k: v for k, v in config['SETTINGS'].items()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user