Skip to content

Commit

Permalink
lxd: Use explicit cluster addr when core addr is wildcard
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
  • Loading branch information
masnax committed Oct 18, 2024
1 parent 3f74324 commit 2a3a705
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxd/api_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,10 @@ func clusterPutJoin(d *Daemon, r *http.Request, req api.ClusterPut) response.Res
return response.SmartError(err)
}

localHTTPSAddress = req.ServerAddress
} else if util.IsWildCardAddress(localHTTPSAddress) {
// Clustering requires an explicit address,
// so if core.https_address is a wildcard, we should still use the explicitly defined address.
localHTTPSAddress = req.ServerAddress
}

Expand Down

0 comments on commit 2a3a705

Please sign in to comment.