summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2009-04-20 14:08:11 +0000
committerOthmar Gsenger <otti@anytun.org>2009-04-20 14:08:11 +0000
commit86a5ac9727b6a9c3df10ad259557ed1899aeedf3 (patch)
treedef624cd43c642b9f38fa5d20efb7f56f5069ea7 /src
parentkd-prf null bug fix by equinox (diff)
added same sync race condition fix
Diffstat (limited to 'src')
-rw-r--r--src/connectionParam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connectionParam.h b/src/connectionParam.h
index da9abef..80cf2aa 100644
--- a/src/connectionParam.h
+++ b/src/connectionParam.h
@@ -71,7 +71,7 @@ private:
UDPPacketSource::proto::endpoint endpoint(boost::asio::ip::address::from_string(remote_host), remote_port);
//This is a workarround, against race condition in sync process
//TODO: find a better solution
- if (endpoint != emptyEndpoint)
+ if (endpoint != emptyEndpoint || remote_host == "::" || remote_host == "[::]" || remote_host == "0.0.0.0")
remote_end_ = endpoint;
}
};