Fix nullnode may cause crash when exporting Clash subscriptions

This commit is contained in:
Tindy X committed 2020-06-26 00:03:42 +08:00
1 parent d042f00a8e
commit c9e665801f
1 file changed
+1 -1
+1 -1
View File
@@ -1165,7 +1165,7 @@ void netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, string_arr
singleproxy["name"] = remark;
singleproxy["server"] = hostname;
singleproxy["port"] = (unsigned short)stoi(port);
singleproxy["port"] = (unsigned short)to_int(port);
switch(x.linkType)
{