mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
- FEATURE: A random listening port can be chosen automatically
This commit is contained in:
parent
3fa14cd47f
commit
9a14c4c599
10 changed files with 47 additions and 66 deletions
|
@ -1084,7 +1084,8 @@ void bittorrent::disableDirectoryScanning() {
|
|||
|
||||
// Set the ports range in which is chosen the port the bittorrent
|
||||
// session will listen to
|
||||
void bittorrent::setListeningPortsRange(std::pair<unsigned short, unsigned short> ports) {
|
||||
void bittorrent::setListeningPort(int port) {
|
||||
std::pair<int,int> ports(port, port);
|
||||
s->listen_on(ports);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue