Explorar o código

Fix link creation bug in active-backup mode

Joseph Henry %!s(int64=3) %!d(string=hai) anos
pai
achega
1a400d33fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      node/Bond.cpp

+ 1 - 1
node/Bond.cpp

@@ -236,7 +236,7 @@ void Bond::nominatePathToBond(const SharedPtr<Path>& path, int64_t now)
 	/**
 	 * Ensure the link is allowed and the path is not already present
 	 */
-	if (! RR->bc->linkAllowed(_policyAlias, getLink(path))) {
+	if (! RR->bc->linkAllowed(_policyAlias, getLinkBySocket(_policyAlias, path->localSocket(), true))) {
 		debug("link %s is not permitted according to user-specified rules", pathToStr(path).c_str());
 		return;
 	}