mirror of
https://github.com/minio/minio.git
synced 2025-11-21 10:16:03 -05:00
include ip address while doing checkPortAvailability (#7818)
While checking for port availability, ip address should be included. When a machine has multiple ip addresses, multiple minio instances or some other applications can be run on same port but different ip address. Fixes #7685
This commit is contained in:
@@ -176,7 +176,7 @@ func serverHandleCmdArgs(ctx *cli.Context) {
|
||||
// to IPv6 address ie minio will start listening on IPv6 address whereas another
|
||||
// (non-)minio process is listening on IPv4 of given port.
|
||||
// To avoid this error sutiation we check for port availability.
|
||||
logger.FatalIf(checkPortAvailability(globalMinioPort), "Unable to start the server")
|
||||
logger.FatalIf(checkPortAvailability(globalMinioHost, globalMinioPort), "Unable to start the server")
|
||||
|
||||
globalIsXL = (setupType == XLSetupType)
|
||||
globalIsDistXL = (setupType == DistXLSetupType)
|
||||
|
||||
Reference in New Issue
Block a user