mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
replace grpc port code that i removed for some reason
This commit is contained in:
parent
bb9b3d4e6f
commit
85bd306eb5
1 changed files with 5 additions and 0 deletions
|
|
@ -265,6 +265,11 @@ func (m *Command) SetupServer() error {
|
|||
return errors.Wrap(err, "creating grpc listener")
|
||||
}
|
||||
|
||||
// If grpc port is 0, get auto-allocated port from listener
|
||||
if grpcURI.Port == 0 {
|
||||
grpcURI.SetPort(uint16(m.grpcLn.Addr().(*net.TCPAddr).Port))
|
||||
}
|
||||
|
||||
// Setup TLS
|
||||
if uri.Scheme == "https" {
|
||||
m.tlsConfig, err = GetTLSConfig(&m.Config.TLS, m.logger.Logger())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue