Skip to content

Commit

Permalink
Fix wrong default port
Browse files Browse the repository at this point in the history
  • Loading branch information
axxelG committed Feb 6, 2019
1 parent 4785e89 commit ad28fcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func newDefaultConfig() *basicTypeConfig {
cfg.LogFileHTTPError = ""
cfg.LogFileHTTPAccess = ""
cfg.ControlsFiles = "./controls.d"
cfg.ListenPort = 80
cfg.ListenPort = 4443
cfg.PublicURI = ""
cfg.LetsEncryptCache = "./cache/letsencrypt"
cfg.MiniserverURL = ""
Expand Down Expand Up @@ -344,7 +344,7 @@ func readConfigFile(filename string) (name string, f []byte, err error) {
if err == nil {
name = defaultConfigFile
}
// Ignore errors because we might get all nedded parameters
// Ignore errors because we might get all needed parameters
// from flags and/or environment variables
err = nil
return
Expand All @@ -368,7 +368,7 @@ func newFileConfig(filename string) (*basicTypeConfig, string, error) {
}
err = toml.Unmarshal(f, cfg)
if err != nil {
return cfg, "", errors.Wrap(err, "Error unmarschaling toml data from "+filename)
return cfg, "", errors.Wrap(err, "Error unmarshal toml data from "+filename)
}

return cfg, fn, nil
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestNewConfig(t *testing.T) {
Version: testingVersionNumber,
ConfigFile: "",
PublicURI: "",
ListenPort: 80,
ListenPort: 4443,
MiniserverURL: new(url.URL),
MiniserverUser: "admin",
MiniserverPassword: "admin",
Expand Down

0 comments on commit ad28fcd

Please sign in to comment.