mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-23 07:32:19 +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;
|
QHostAddress address;
|
||||||
foreach (address, QNetworkInterface::allAddresses()) {
|
foreach (address, QNetworkInterface::allAddresses()) {
|
||||||
if (address.protocol() == QAbstractSocket::IPv6Protocol && address != QHostAddress(QHostAddress::LocalHost))
|
if (address.protocol() == QAbstractSocket::IPv6Protocol && address != QHostAddress(QHostAddress::LocalHostIPv6))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return(address.toString());
|
return(address.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user