mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
This makes sure that when SSL is enabled (for FS/single node mode), the server address is picked up from the --address option (that needs to include the hostname for SSL verification, and has to be input appropriately by user), instead of just using ":<port>".
This commit is contained in:
committed by
Harshavardhana
parent
95567c68bf
commit
6274727b71
+1
-1
@@ -97,7 +97,7 @@ func splitNetPath(networkPath string) (netAddr, netPath string, err error) {
|
||||
// `host:port` format.
|
||||
func getLocalAddress(srvCmdConfig serverCmdConfig) string {
|
||||
if !srvCmdConfig.isDistXL {
|
||||
return fmt.Sprintf(":%d", globalMinioPort)
|
||||
return srvCmdConfig.serverAddr
|
||||
}
|
||||
for _, export := range srvCmdConfig.disks {
|
||||
// Validates if remote disk is local.
|
||||
|
||||
Reference in New Issue
Block a user