#6546 Filtered out self assigned ip addresses from being displayed

This commit is contained in:
Jamie Newbon 2019-08-22 10:34:38 +01:00 committed by Jnewbon
parent 26d50d1e18
commit af08223dae
1 changed files with 4 additions and 2 deletions

View File

@ -1034,10 +1034,12 @@ QString MainWindow::getIPAddresses()
hinted = true; hinted = true;
format = "<b>%1</b>, "; format = "<b>%1</b>, ";
} }
//Prevent self assigned IPs being displayed
if (!address.startsWith("169.254")) {
result += format.arg(address); result += format.arg(address);
} }
} }
}
if (result == "") { if (result == "") {
return tr("Unknown"); return tr("Unknown");