配置文件编码问题

This commit is contained in:
cheney 2026-05-26 20:54:11 +08:00
parent cdfdd9b7e4
commit f87061266a

View File

@ -17,7 +17,7 @@ def load_config(config_path='config.ini'):
'target_port': 9788
}
config.read(config_path)
config.read(config_path, encoding='utf-8')
if 'proxy' not in config:
print(f"配置文件格式错误,使用默认配置")