fix crash when using runOnConnect

This commit is contained in:
aler9 2020-09-19 17:14:19 +02:00
parent b1b6f669dd
commit a0d076e8f0

View File

@ -193,7 +193,7 @@ func (c *client) run() {
var onConnectCmd *exec.Cmd
if c.p.conf.RunOnConnect != "" {
var err error
onConnectCmd, err = startExternalCommand(c.p.conf.RunOnConnect, c.path.name)
onConnectCmd, err = startExternalCommand(c.p.conf.RunOnConnect, "")
if err != nil {
c.log("ERR: %s", err)
}