mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -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();
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user