mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-26 03:06:37 +03:00
Show external IP in the log. Closes #968.
This commit is contained in:
parent
97fe948f6c
commit
ff789fc493
1 changed files with 4 additions and 0 deletions
|
@ -2634,6 +2634,10 @@ void QBtSession::readAlerts() {
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (external_ip_alert *p = dynamic_cast<external_ip_alert*>(a.get())) {
|
||||
boost::system::error_code ec;
|
||||
addConsoleMessage(tr("External IP: %1", "e.g. External IP: 192.168.0.1").arg(p->external_address.to_string(ec).c_str()), "blue");
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
qWarning() << "Caught exception in readAlerts(): " << e.what();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue