add jetty "host" property

Add the posibility to set the network interface the Jetty server connector binds to as an IP address or a hostname. If null or 0.0.0.0, then its automatically binds to all interfaces.

Currently, the sercer connector uses 0.0.0.0 as fallback and always binds to all interfaces.

References: <https://eclipse.dev/jetty/javadoc/jetty-11/org/eclipse/jetty/server/AbstractNetworkConnector.html#getHost()>
This commit is contained in:
HeinrichAD 2023-07-11 21:15:14 +02:00 committed by PlantUML
parent 294b2a2418
commit f03bb68407
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@
</Array>
</Arg>
<!-- Change port according to property. Default is 8080 -->
<!-- Change host and port according to properties. Default is 0.0.0.0 and 8080. -->
<Set name="host"><Property name="jetty.http.host" deprecated="jetty.host" default="0.0.0.0" /></Set>
<Set name="port"><Property name="jetty.http.port" deprecated="jetty.port" default="8080" /></Set>
</New>