mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-26 09:20:14 +02:00
grpc: Replace environment variables in listening address.
This commit is contained in:
parent
6c62f9caae
commit
b47a112e7e
|
@ -79,7 +79,7 @@ type GrpcServer struct {
|
|||
|
||||
func NewGrpcServer(config *goconf.ConfigFile) (*GrpcServer, error) {
|
||||
var listener net.Listener
|
||||
if addr, _ := config.GetString("grpc", "listen"); addr != "" {
|
||||
if addr, _ := GetStringOptionWithEnv(config, "grpc", "listen"); addr != "" {
|
||||
var err error
|
||||
listener, err = net.Listen("tcp", addr)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue