mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2025-10-28 20:32:42 +00:00
Fix nullnode may cause crash when exporting Clash subscriptions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user