浏览代码

Fix sleeper bug that probably did nothing in setSupernodes().

Adam Ierymenko 11 年之前
父节点
当前提交
7a37326cc0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      node/Topology.cpp

+ 1 - 0
node/Topology.cpp

@@ -89,6 +89,7 @@ void Topology::setSupernodes(const Dictionary &sn)
 				if (udp.length() > 0)
 					a.push_back(std::pair<InetAddress,bool>(InetAddress(udp),false));
 				std::string tcp(snspec.get("tcp",std::string()));
+				if (tcp.length() > 0)
 					a.push_back(std::pair<InetAddress,bool>(InetAddress(tcp),true));
 			} catch ( ... ) {
 				LOG("supernode list contained invalid entry for: %s",d->first.c_str());