mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-07 04:55:00 +03:00
Add vcn and pcs properties to VmessQRCode DTO
This commit is contained in:
@@ -66,7 +66,9 @@ public class VmessFmt : BaseFmt
|
|||||||
sni = item.Sni,
|
sni = item.Sni,
|
||||||
alpn = item.Alpn,
|
alpn = item.Alpn,
|
||||||
fp = item.Fingerprint,
|
fp = item.Fingerprint,
|
||||||
insecure = item.GetAllowInsecure() ? "1" : "0"
|
insecure = item.GetAllowInsecure() ? "1" : "0",
|
||||||
|
vcn = item.VerifyPeerCertByName,
|
||||||
|
pcs = item.CertSha
|
||||||
};
|
};
|
||||||
|
|
||||||
var url = JsonUtils.Serialize(vmessQRCode);
|
var url = JsonUtils.Serialize(vmessQRCode);
|
||||||
@@ -141,6 +143,8 @@ public class VmessFmt : BaseFmt
|
|||||||
item.Alpn = Utils.ToString(vmessQRCode.alpn);
|
item.Alpn = Utils.ToString(vmessQRCode.alpn);
|
||||||
item.Fingerprint = Utils.ToString(vmessQRCode.fp);
|
item.Fingerprint = Utils.ToString(vmessQRCode.fp);
|
||||||
item.AllowInsecure = vmessQRCode.insecure == "1" ? Global.StringTrue : string.Empty;
|
item.AllowInsecure = vmessQRCode.insecure == "1" ? Global.StringTrue : string.Empty;
|
||||||
|
item.VerifyPeerCertByName = Utils.ToString(vmessQRCode.vcn);
|
||||||
|
item.CertSha = Utils.ToString(vmessQRCode.pcs);
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,4 +40,8 @@ public class VmessQRCode
|
|||||||
public string fp { get; set; } = string.Empty;
|
public string fp { get; set; } = string.Empty;
|
||||||
|
|
||||||
public string insecure { get; set; } = string.Empty;
|
public string insecure { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string vcn { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public string pcs { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user