Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature : Random Port #4

Closed
wants to merge 1 commit into from
Closed

Conversation

efevretis
Copy link

A random port is selected every time qBittorrent starts.

@cdumez
Copy link
Contributor

cdumez commented May 4, 2012

Sorry but this is far from it :)

This will only display a random port in the Options dialog, this will NOT update the preferences or alter the actual port being used unless the user opens the options dialog and saves

Here is what is needed:

  1. Add a getter/setter to preferences.h for a "Select a random port on start up" setting.
  2. Add the checkbox for this new setting to options.ui and the related code to options_imp.*
  3. Add code to qbtsession.cpp, right at the beginning of configureSession() that will generate a random port (if the setting in preferences is enabled) and call setListeningPort() appropriately.

@cdumez cdumez closed this May 4, 2012
@netman73 netman73 mentioned this pull request Jul 5, 2013
@ghost ghost mentioned this pull request Feb 15, 2014
@sorokin sorokin mentioned this pull request May 9, 2014
@hyperion1is hyperion1is mentioned this pull request Jan 8, 2015
@zywo zywo mentioned this pull request Jan 4, 2016
SeigneurSerpent added a commit to SeigneurSerpent/qBittorrent that referenced this pull request Apr 8, 2016
@Qwerty439 Qwerty439 mentioned this pull request Dec 26, 2014
@ProximaNova ProximaNova mentioned this pull request Dec 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants