mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-25 02:58:33 +02:00
settings rework, proxy support
This commit is contained in:
+5
-3
@@ -464,9 +464,6 @@ void externalLinkWarning(QWidget *parent, const QString &url){
|
||||
|
||||
QString body = QString("You are about to open the following link:\n\n%1").arg(url);
|
||||
|
||||
if (!(TailsOS::detect() || WhonixOS::detect()))
|
||||
body += "\n\nYou will NOT be using Tor.";
|
||||
|
||||
QMessageBox linkWarning(parent);
|
||||
linkWarning.setWindowTitle("External link warning");
|
||||
linkWarning.setText(body);
|
||||
@@ -574,4 +571,9 @@ QFont relativeFont(int delta) {
|
||||
font.setPointSize(font.pointSize() + delta);
|
||||
return font;
|
||||
}
|
||||
|
||||
bool isLocalUrl(const QUrl &url) {
|
||||
QRegularExpression localNetwork(R"((^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.))");
|
||||
return (localNetwork.match(url.host()).hasMatch() || url.host() == "localhost");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user