diff options
author | Wolfy-J <[email protected]> | 2020-10-17 17:27:58 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-10-17 17:27:58 +0300 |
commit | 9e572cecbade5673dc93e1240e9573f093f64bd6 (patch) | |
tree | 872b76d461956316f7db677d2f7b5b879ddc6f1e | |
parent | f0ac12cb7870c71342bf0f2cee6883722ddd9ea1 (diff) |
- allow empty relay dsnv2.0.0-alpha11
-rw-r--r-- | plugins/factory/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/factory/app.go b/plugins/factory/app.go index 0399b7e6..a38307e7 100644 --- a/plugins/factory/app.go +++ b/plugins/factory/app.go @@ -88,7 +88,7 @@ func (app *App) NewFactory(env Env) (roadrunner.Factory, error) { } dsn := strings.Split(app.cfg.Listen, "://") - if len(dsn) != 2 { + if app.cfg.Listen != "" && len(dsn) != 2 { return nil, errors.New("invalid DSN (tcp://:6001, unix://file.sock)") } |