v2ray2json icon indicating copy to clipboard operation
v2ray2json copied to clipboard

vmess error:

Open liMilCo opened this issue 3 months ago • 1 comments

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 avatar Sep 01 '25 13:09 liMilCo

@liMilCo Nice change! Please send marge request, Thanks

arminmokri avatar Sep 16 '25 23:09 arminmokri