From d6e0e9226c13c235df2bd6ff6c3cf068cbdb5c24 Mon Sep 17 00:00:00 2001 From: Toperlock <861705708@qq.com> Date: Thu, 1 Feb 2024 00:54:24 +0800 Subject: [PATCH] fix vmess alter_id --- parsers/vmess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/vmess.py b/parsers/vmess.py index 42d36b07e..5f891e105 100644 --- a/parsers/vmess.py +++ b/parsers/vmess.py @@ -71,7 +71,7 @@ def parse(data): 'server_port': int(item.get('port')), 'uuid': item.get('id'), 'security': item.get('scy') if item.get('scy') not in ['http', None] else 'auto', - 'alter_id': int(item["aid"] if item["aid"] else '0'), + 'alter_id': int(item["aid"] if item.get("aid") else '0'), 'packet_encoding': 'xudp' } if node['security'] == 'gun':