v2ray2json
v2ray2json copied to clipboard
vmess error:
on generateConfig(vmess:// ... i get error:
An unexpected error occurred: 'int' object has no attribute 'isdigit'
so i check
line: 1160:
vnext.port = (
int(vmessQRCode.port) if vmessQRCode.port.isdigit() else DEFAULT_PORT
)
i chnge it to: vnext.port = getattr(vmessQRCode, 'port', DEFAULT_PORT)
also for user.aid : user.alterId = getattr(vmessQRCode, 'aid', None)
@liMilCo Nice change! Please send marge request, Thanks