summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-10-17 17:27:58 +0300
committerWolfy-J <[email protected]>2020-10-17 17:27:58 +0300
commit9e572cecbade5673dc93e1240e9573f093f64bd6 (patch)
tree872b76d461956316f7db677d2f7b5b879ddc6f1e
parentf0ac12cb7870c71342bf0f2cee6883722ddd9ea1 (diff)
- allow empty relay dsnv2.0.0-alpha11
-rw-r--r--plugins/factory/app.go2
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)")
}