From fd426705277728a945b7083757a5899ac42a1f86 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Wed, 12 Dec 2018 13:56:54 +0500 Subject: [PATCH] NetUtil: Add "100.64.0.0/10" private IPv4 addresses. --- src/ui/util/net/netutil.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ui/util/net/netutil.cpp b/src/ui/util/net/netutil.cpp index fca99e05..422a85f8 100644 --- a/src/ui/util/net/netutil.cpp +++ b/src/ui/util/net/netutil.cpp @@ -101,13 +101,15 @@ QStringList NetUtil::localIpv4Networks() { static QStringList list = QStringList() << "0.0.0.0/32" // non-routable meta-address + << "10.0.0.0/8" + << "100.64.0.0/10" // for carrier-grade NAT deployment + << "127.0.0.0/8" // Loopback + << "169.254.0.0/16" // if cannot obtain a network address via DHCP + << "172.16.0.0/12" + << "192.168.0.0/16" << "239.255.255.250/32" // IP Multicast for DLNA/UPNP << "255.255.255.255/32" // IP Broadcast - << "10.0.0.0/8" - << "127.0.0.0/8" - << "169.254.0.0/16" - << "172.16.0.0/12" - << "192.168.0.0/16"; + ; return list; }