summaryrefslogtreecommitdiff
path: root/server_config.go
diff options
context:
space:
mode:
Diffstat (limited to 'server_config.go')
-rw-r--r--server_config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server_config.go b/server_config.go
index 1d8c281c..e2f9266b 100644
--- a/server_config.go
+++ b/server_config.go
@@ -43,6 +43,10 @@ func (cfg *ServerConfig) SetDefaults() {
cfg.RelayTimeout = time.Minute
}
+ if cfg.Pool == nil {
+ cfg.Pool = &Config{}
+ }
+
if cfg.Pool.AllocateTimeout == 0 {
cfg.Pool.AllocateTimeout = time.Minute
}