mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 12:27:52 +00:00
Merge pull request #416 from tgruben/fix-grpc-address
add address for listening
This commit is contained in:
commit
43195ae2dd
1 changed files with 9 additions and 0 deletions
|
|
@ -274,6 +274,15 @@ func (m *Command) SetupServer() error {
|
|||
grpcURI.SetPort(uint16(m.grpcLn.Addr().(*net.TCPAddr).Port))
|
||||
}
|
||||
|
||||
if grpcURI.Scheme == "http" {
|
||||
grpcURI.Scheme = "grpc"
|
||||
}
|
||||
|
||||
// discover the address if not specified
|
||||
if grpcURI.Host == "0.0.0.0" {
|
||||
grpcURI.Host = outboundIP().String()
|
||||
}
|
||||
|
||||
// Setup TLS
|
||||
if uri.Scheme == "https" {
|
||||
m.tlsConfig, err = GetTLSConfig(&m.Config.TLS, m.logger.Logger())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue