Browse Source

Show external IP in the log. Closes #968.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
ff789fc493
  1. 4
      src/qtlibtorrent/qbtsession.cpp

4
src/qtlibtorrent/qbtsession.cpp

@ -2634,6 +2634,10 @@ void QBtSession::readAlerts() { @@ -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…
Cancel
Save