配置文件编码问题
This commit is contained in:
parent
cdfdd9b7e4
commit
f87061266a
@ -17,7 +17,7 @@ def load_config(config_path='config.ini'):
|
|||||||
'target_port': 9788
|
'target_port': 9788
|
||||||
}
|
}
|
||||||
|
|
||||||
config.read(config_path)
|
config.read(config_path, encoding='utf-8')
|
||||||
|
|
||||||
if 'proxy' not in config:
|
if 'proxy' not in config:
|
||||||
print(f"配置文件格式错误,使用默认配置")
|
print(f"配置文件格式错误,使用默认配置")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user