- FEATURE: A random listening port can be chosen automatically

This commit is contained in:
Christophe Dumez 2009-08-25 09:19:02 +00:00
commit 9a14c4c599
10 changed files with 47 additions and 66 deletions

View file

@ -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);
}