Commit 3ba09b4d authored by dogmaphobic's avatar dogmaphobic

Allowing loopback addresses

parent ca6dc480
...@@ -311,8 +311,8 @@ void UDPConfiguration::addHost(const QString& host) ...@@ -311,8 +311,8 @@ void UDPConfiguration::addHost(const QString& host)
QHostAddress address; QHostAddress address;
for (int i = 0; i < hostAddresses.size(); i++) for (int i = 0; i < hostAddresses.size(); i++)
{ {
// Exclude loopback IPv4 and all IPv6 addresses // Exclude all IPv6 addresses
if (!hostAddresses.at(i).toString().contains(":") && !!hostAddresses.at(i).toString().startsWith("127")) if (!hostAddresses.at(i).toString().contains(":"))
{ {
address = hostAddresses.at(i); address = hostAddresses.at(i);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment