fix default port not being set on validation
This commit is contained in:
parent
35c5ed5946
commit
0029c297f1
@ -170,7 +170,7 @@ type Config struct {
|
||||
}
|
||||
|
||||
// isValid checks some basic settings to ensure the config is valid.
|
||||
func (conf Config) isValid() error {
|
||||
func (conf *Config) isValid() error {
|
||||
if conf.Server == "" {
|
||||
return errors.New("invalid server specified")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user