summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)")
}