mirror of
https://github.com/honmashironeko/ProxyCat.git
synced 2025-06-20 18:01:01 +00:00
17 lines
383 B
Python
17 lines
383 B
Python
import configparser
|
|
|
|
DEFAULT_CONFIG = {
|
|
'port': 1080,
|
|
'mode': 'cycle',
|
|
'interval': 300,
|
|
'username': '',
|
|
'password': '',
|
|
'use_getip': False,
|
|
'proxy_file': 'ip.txt',
|
|
}
|
|
|
|
def load_config(config_file='config.ini'):
|
|
config = configparser.ConfigParser()
|
|
config.read(config_file, encoding='utf-8')
|
|
return {k: v for k, v in config['SETTINGS'].items()}
|