Default to proxy url type "static" if none is configured.

This commit is contained in:
Joachim Bauch 2020-09-07 17:07:48 +02:00
parent 198117a8d0
commit adce45162e
Failed to extract signature

View file

@ -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")