コード例 #1
0
def read_v2_config():
    try:
        path = config.get_v2_config_path()
        file_util.touch(path)
        with open(path, encoding='utf-8') as f:
            return f.read()
    except Exception as e:
        logging.error('读取 v2ray 配置文件发生错误:' + str(e))
        return None
コード例 #2
0
def read_v2_config():
    try:
        path = config.get_v2_config_path()
        file_util.touch(path)
        with open(path, encoding='utf-8') as f:
            return f.read()
    except Exception as e:
        logging.error(
            'An error occurred while reading the v2ray configuration file: ' +
            str(e))
        return None