Fix nullnode may cause crash when exporting Clash subscriptions

This commit is contained in:
Tindy X
2020-06-26 00:03:42 +08:00
parent d042f00a8e
commit c9e665801f

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)
{