Add comment why we choose a differnt port for headless on macOS

This commit is contained in:
Sebastian Kürten
2023-06-20 12:21:11 +02:00
parent 3a0f8ed85c
commit 079c6e0475

View File

@@ -28,6 +28,7 @@ import java.util.logging.Level.INFO
import java.util.logging.Level.WARNING
import java.util.logging.LogManager
// On macOS, port 7000 is used by ControlCenter (probably AirPlay), so use a different port
private val DEFAULT_PORT = if (isMac()) 7001 else 7000
private val DEFAULT_DATA_DIR = getProperty("user.home") + separator + ".briar"