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

Specify picoweb bind address & print actual listen port #461

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

matthew16550
Copy link
Collaborator

This PR adds 2 closely related features:

  • Allow specifying the bind address that picoweb will listen on (e.g. -picoweb:8000:localhost).

    Obviously picoweb isn't designed to be highly secure but the default is to listen on all addresses and that can be a problem in highly security conscious organisations. This PR allows specifying a single address to listen on so users can choose localhost or some other suitable address.

    Existing behaviour for -picoweb & -picoweb:PORT is not changed.

  • When port 0 is specified, the OS will assign a random available port number. This can be helpful in build pipelines where a hard coded port might be in use by another process. Picoweb already supports this but is printing webPort=0, this PR makes it print the actual port that is being used.

… -picoweb:8000:localhost).

* Change picoweb server to print the actual port being listened on when port 0 was specified.
@arnaudroques arnaudroques merged commit 7b784cd into plantuml:master Feb 12, 2021
@matthew16550 matthew16550 deleted the picoweb-port-address branch February 12, 2021 08:49
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.

None yet

2 participants