mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 08:25:03 -04:00
fixed local ips sorting
This commit is contained in:
@ -227,7 +227,7 @@ void ServerConfigDialog::generateQR()
|
|||||||
QString tmp = add.toString();
|
QString tmp = add.toString();
|
||||||
if(tmp.contains(".") && !tmp.startsWith("127"))
|
if(tmp.contains(".") && !tmp.startsWith("127"))
|
||||||
{
|
{
|
||||||
if(dir.isEmpty() && tmp.startsWith("192.168"))
|
if(dir.isEmpty() && tmp.startsWith("192.168.2."))
|
||||||
dir = tmp;
|
dir = tmp;
|
||||||
else
|
else
|
||||||
otherAddresses.push_back(tmp);
|
otherAddresses.push_back(tmp);
|
||||||
@ -244,7 +244,7 @@ void ServerConfigDialog::generateQR()
|
|||||||
QString tmp = add;
|
QString tmp = add;
|
||||||
if(tmp.contains(".") && !tmp.startsWith("127"))
|
if(tmp.contains(".") && !tmp.startsWith("127"))
|
||||||
{
|
{
|
||||||
if(dir.isEmpty() && tmp.startsWith("192.168"))
|
if(dir.isEmpty() && tmp.startsWith("192.168.2."))
|
||||||
dir = tmp;
|
dir = tmp;
|
||||||
else
|
else
|
||||||
otherAddresses.push_back(tmp);
|
otherAddresses.push_back(tmp);
|
||||||
|
Reference in New Issue
Block a user