Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
Always use SSL to access a device
Browse files Browse the repository at this point in the history
  • Loading branch information
mnencia committed May 27, 2020
1 parent 6fa4b0f commit 7f0dc80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
locally) or when an API call returns a connection error (to allow a
quick transition from Internal to External endpoint if the device
become unreachable locally).
- Always use SSL to access a device

## [0.0.1] - 2020-04-30

Expand Down
2 changes: 1 addition & 1 deletion mch/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (d *Device) DeviceURI() string {
return d.Network.ExternalURI
}

return d.Network.InternalURL
return fmt.Sprintf("https://%s", d.Network.InternalDNSName)
}

func (d *Device) getURI(path string) string {
Expand Down

0 comments on commit 7f0dc80

Please sign in to comment.