Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

How to convert a json to vmess? #15

@agn-7

Description

@agn-7

I use json2vmess.py without any result. what actually should I do?

Here's the v2ray client config file:

{
	"log": {
		"loglevel": "warning"
	},
	"inbounds": [{
			"port": 1080,
			"protocol": "socks",
			"settings": {
				"udp": true
			}
		},
		{
			"port": 8880,
			"protocol": "http",
			"allowTransparent": false,
			"userLevel": 0
		}
	],
	"outbounds": [{
			"protocol": "vmess",
			"settings": {
				"vnext": [{
					"address": "xxxx",
					"port": 18345,
					"users": [{
						"id": "xxxx",
						"alterId": 0,
						"security": "aes-128-gcm"

					}]
				}]
			},
			"streamSettings": {
				"network": "ws",
				"wsSettings": {
					"path": "/vmess"

				}
			}
		},
		{
			"protocol": "freedom",
			"tag": "direct"
		}
	],
	"routing": {
		"domainStrategy": "IPOnDemand",
		"rules": [

			{

				"domain": ["ext:iran.dat:ir"],
				"outboundTag": "direct",
				"type": "field"
			},
			{

				"domain": ["regexp:.*\\.ir$"],
				"outboundTag": "direct",
				"type": "field"
			},
			{
				"domain": ["regexp:.*\\.cab$"],
				"outboundTag": "direct",
				"type": "field"
			},
			{

				"domain": ["ext:iran.dat:other"],
				"outboundTag": "direct",
				"type": "field"
			},
			{
				"domain": ["ext:iran.dat:other"],
				"outboundTag": "direct",
				"type": "field"
			}
		]
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions