mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-08 08:51:00 +00:00
Changed the constant QHostAddress::LocalHost to QHostAddress::LocalHostIPv6
This commit is contained in:
parent
bbfcfd00d9
commit
8d8649e5f9
@ -36,7 +36,7 @@ QString Network::local_ipv6()
|
||||
{
|
||||
QHostAddress address;
|
||||
foreach (address, QNetworkInterface::allAddresses()) {
|
||||
if (address.protocol() == QAbstractSocket::IPv6Protocol && address != QHostAddress(QHostAddress::LocalHost))
|
||||
if (address.protocol() == QAbstractSocket::IPv6Protocol && address != QHostAddress(QHostAddress::LocalHostIPv6))
|
||||
break;
|
||||
}
|
||||
return(address.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user