Allow users to pick their own port

With manifest.toml in v2, it looks like we can set main.port = “12345” and main.exposed = “true” in [resources.ports] and that would set the firewall properly.

If I want to let users specify what port they would like to run a service, how would I open the firewall?

Can you elaborate what’s the point of letting user pick the port ? x_x

I want to package a VPN server and that app encourages people to use a random port number. It would also make it possible to run multiple copies of the VPN server.

I realize that this isn’t a typical use case for Yunohost.

I could just let Yunohost pick a random port number and show that after installation or even just hard code the port number, but just thought I’ll ask if it is possible let the user pick their own during the installation process.