mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
add address for listening
This commit is contained in:
parent
31c5e7363d
commit
fdaae31c2c
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