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

Commit 7f0dc80

Browse files
committed
Always use SSL to access a device
1 parent 6fa4b0f commit 7f0dc80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
locally) or when an API call returns a connection error (to allow a
1919
quick transition from Internal to External endpoint if the device
2020
become unreachable locally).
21+
- Always use SSL to access a device
2122

2223
## [0.0.1] - 2020-04-30
2324

mch/device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (d *Device) DeviceURI() string {
128128
return d.Network.ExternalURI
129129
}
130130

131-
return d.Network.InternalURL
131+
return fmt.Sprintf("https://%s", d.Network.InternalDNSName)
132132
}
133133

134134
func (d *Device) getURI(path string) string {

0 commit comments

Comments
 (0)