Skip to content

Commit

Permalink
Default to proxy url type "static" if none is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Sep 7, 2020
1 parent 198117a commit adce451
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/signaling/mcu_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,10 @@ func NewMcuProxy(config *goconf.ConfigFile) (Mcu, error) {
publisherWaiters: make(map[uint64]chan bool),
}

if urlType == "" {
urlType = proxyUrlTypeStatic
}

switch urlType {
case proxyUrlTypeStatic:
mcuUrl, _ := config.GetString("mcu", "url")
Expand Down

0 comments on commit adce451

Please sign in to comment.