1
0
Fork 0

Fix secure variable ref

main v0.12.3
Jordan Hotmann 2023-11-27 16:54:15 -07:00
parent 369bdd8f2b
commit b213dce11f
No known key found for this signature in database
GPG Key ID: 01B504170C2A2EA3
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func (c *HatsConfig) GetNatsBaseUrl() string {
func (c *HatsConfig) GetHatsBaseUrl() string {
protocol := "http"
if c.HomeAssistantSecure {
if c.HatsSecure {
protocol += "s"
}
return fmt.Sprintf("%s://%s:%s", protocol, c.HatsHost, c.HatsPort)