Small fixes

This commit is contained in:
crschnick
2024-06-28 18:44:40 +00:00
parent d2c56c0acd
commit d6d5c8162f
3 changed files with 7 additions and 3 deletions
@@ -44,6 +44,11 @@ public class BeaconConfig {
}
public static int getUsedPort() {
var beaconPort = System.getenv("BEACON_PORT");
if (beaconPort != null && !beaconPort.isBlank()) {
return Integer.parseInt(beaconPort);
}
if (System.getProperty(BEACON_PORT_PROP) != null) {
return Integer.parseInt(System.getProperty(BEACON_PORT_PROP));
}