Skip to content

Commit e3fc11b

Browse files
committed
Merge pull request #5 from arduino/fix-certs
Fix cert path for installer Former-commit-id: db750b9f5646bc4f99ac09da4fb02288f9316bd6 [formerly 004e5901f053b0b9fd6d91317e6322a01dcbaff5] Former-commit-id: 8daf346652684a81ec015f873a38535b0eb24cb4
2 parents 5136ef7 + 52a22ea commit e3fc11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func main() {
204204
http.HandleFunc("/ws", wsHandler)
205205
http.HandleFunc("/upload", uploadHandler)
206206

207-
if err := http.ListenAndServeTLS(*addrSSL, "cert.pem", "key.pem", nil); err != nil {
207+
if err := http.ListenAndServeTLS(*addrSSL, filepath.Join(dest, "cert.pem"), filepath.Join(dest, "key.pem"), nil); err != nil {
208208
fmt.Printf("Error trying to bind to port: %v, so exiting...", err)
209209
log.Fatal("Error ListenAndServe:", err)
210210
}

0 commit comments

Comments
 (0)