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