Skip to content

Commit

Permalink
修复导入h2 path分享链接的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed May 6, 2018
1 parent 138f59c commit 925b24d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions v2rayN/v2rayN/Handler/V2rayConfigHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,7 @@ public static List<VmessItem> ImportFromStrConfig(out string msg, string str)
vmessItem.network = Global.DefaultNetwork;
vmessItem.headerType = Global.None;

vmessItem.configVersion = Utils.ToInt(vmessQRCode.v);
vmessItem.remarks = vmessQRCode.ps;
vmessItem.address = vmessQRCode.add;
vmessItem.port = Convert.ToInt32(vmessQRCode.port);
Expand All @@ -1063,8 +1064,11 @@ public static List<VmessItem> ImportFromStrConfig(out string msg, string str)
vmessItem.network = vmessQRCode.net;
vmessItem.headerType = vmessQRCode.type;
vmessItem.requestHost = vmessQRCode.host;
vmessItem.path = vmessQRCode.path;
vmessItem.streamSecurity = vmessQRCode.tls;

ConfigHandler.UpgradeServerVersion(ref vmessItem);

vmessItems.Add(vmessItem);
}
//ss://字符串处理
Expand Down

0 comments on commit 925b24d

Please sign in to comment.