From 9e572cecbade5673dc93e1240e9573f093f64bd6 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Sat, 17 Oct 2020 17:27:58 +0300 Subject: - allow empty relay dsn --- plugins/factory/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)") } -- cgit v1.2.3