Custom API port (#62)

Adds ability to specify API Port, either via CLI or in config. If port is not provided, default is used, taking into account if TLS is enabled or not
This commit is contained in:
Welby McRoberts
2019-12-26 18:17:27 +00:00
committed by Steve Brunton
parent 9ceb56fdbf
commit 55ae663ce3
4 changed files with 14 additions and 4 deletions

View File

@@ -31,6 +31,7 @@ type Device struct {
Address string `yaml:"address"`
User string `yaml:"user"`
Password string `yaml:"password"`
Port string `yaml:"port"`
}
// Load reads YAML from reader and unmashals in Config