mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 07:20:35 +00:00
Small fixes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user