summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 14:45:23 +0300
committerWolfy-J <[email protected]>2018-09-10 14:45:23 +0300
commit7dae5ddd0dc0e005fba1cdb5a2ef8afe3b61b6fb (patch)
treeb47968331ce7044832175800f3b6d2dc87043fd2 /server_config.go
parent7ab1e77f2db902cf8a485e3a28bfdbd58a613dc9 (diff)
minor config improvements
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server_config.go b/server_config.go
index 51f8245b..1d8c281c 100644
--- a/server_config.go
+++ b/server_config.go
@@ -35,8 +35,8 @@ type ServerConfig struct {
// SetDefaults sets missing values to their default values.
func (cfg *ServerConfig) SetDefaults() {
- if c.Workers.Relay == "" {
- c.Workers.Relay = "pipes"
+ if cfg.Relay == "" {
+ cfg.Relay = "pipes"
}
if cfg.RelayTimeout == 0 {