-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Randomize ports #95
base: upgrade-node-wrapper
Are you sure you want to change the base?
Randomize ports #95
Conversation
The bootstrap page will need to determine the fproxy port. It can be handled as a query string. |
} | ||
|
||
// instantiate connector with given port | ||
Connector connector = new Connector("127.0.0.1", prefs.getInt("fcp.port", 9481)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no randomized IP? 127.x.y.z should be possible.
// store in shared preferences | ||
SharedPreferences.Editor editor = prefs.edit(); | ||
editor.putInt("fproxy.port", new Random().nextInt(TOP_RANGE - BOTTOM_RANGE) + BOTTOM_RANGE); | ||
editor.putInt("fcp.port", new Random().nextInt(TOP_RANGE - BOTTOM_RANGE) + BOTTOM_RANGE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also change the bindTo IP address?
@desyncr Did you see the reviews here? |
This PR includes changes to randomize fproxy.port and fcp.port configs at first run.
Closes #77