Skip to content

分享链接格式说明(ver 2)

2dust edited this page Aug 31, 2024 · 12 revisions

分享的链接(二维码)格式:vmess://(Base64编码的json格式服务器数据

.../Modes/VmessQRCode.cs

json数据如下

{
	"v": "2",
	"ps": " 备注或别名  ",
	"add": "111.111.111.111",
	"port": "32000",
	"id": "1386f85e-657b-4d6e-9d56-78badb75e1fd",
	"aid": "100",
	"scy": "zero",
	"net": "tcp",
	"type": "none",
	"host": "www.bbb.com",
	"path": "/",
	"tls": "tls",
	"sni": "www.ccc.com",
	"alpn": "h2",
	"fp": "chrome"
}
  • v: 配置文件版本号,主要用来识别当前配置
  • ps: 备注或别名
  • add: 地址IP或域名
  • port: 端口号
  • id: UUID
  • aid: alterId
  • scy: 加密方式(security),没有时值默认auto
  • net: 传输协议(tcp\kcp\ws\h2\quic)
  • type: 伪装类型(none\http\srtp\utp\wechat-video) *tcp or kcp or QUIC
  • host: 伪装的域名
  1. 1)http(tcp)->host中间逗号(,)隔开
  2. 2)ws->host
  3. 3)h2->host
  4. 4)QUIC->securty
  • path: path
  1. 1)ws->path
  2. 2)h2->path
  3. 3)QUIC->key/Kcp->seed
  4. 4)grpc->serviceName
  • tls: 传输层安全(tls)
  • sni: serverName
  • alpn: h2,http/1.1
  • fp: fingerprint