Archived
Don't exit after creating HTTPS certs (fixes #1103)
This commit is contained in:
1 parent
fc6a029311
commit
3704d2d86b
2 files changed
+63
-1
No files matched your search
@@ -73,7 +73,8 @@ func startGUI(cfg config.GUIConfiguration, assetDir string, m *model.Model) erro
|
||||
|
||||
// When generating the HTTPS certificate, use the system host name per
|
||||
// default. If that isn't available, use the "syncthing" default.
|
||||
name, err := os.Hostname()
|
||||
var name string
|
||||
name, err = os.Hostname()
|
||||
if err != nil {
|
||||
name = tlsDefaultCommonName
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user