mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Update proxy settings in Web UI
This commit is contained in:
parent
b48b9479d2
commit
b59dded2a4
3 changed files with 16 additions and 1 deletions
|
@ -282,6 +282,7 @@ void QBtSession::configureSession() {
|
|||
const unsigned short old_listenPort = getListenPort();
|
||||
const unsigned short new_listenPort = pref.getSessionPort();
|
||||
if(old_listenPort != new_listenPort) {
|
||||
qDebug("Session port changes in program preferences: %d -> %d", old_listenPort, new_listenPort);
|
||||
setListeningPort(new_listenPort);
|
||||
addConsoleMessage(tr("qBittorrent is bound to port: TCP/%1", "e.g: qBittorrent is bound to port: 6881").arg(QString::number(new_listenPort)));
|
||||
}
|
||||
|
@ -1849,6 +1850,7 @@ void QBtSession::setAppendqBExtension(bool append) {
|
|||
// Set the ports range in which is chosen the port the Bittorrent
|
||||
// session will listen to
|
||||
void QBtSession::setListeningPort(int port) {
|
||||
qDebug() << Q_FUNC_INFO << port;
|
||||
Preferences pref;
|
||||
std::pair<int,int> ports(port, port);
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue