From 2fc4c88bf43f0ea5ea305eae2b7af24b2cc93287 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 14 May 2018 11:36:24 +0000 Subject: [PATCH] ssh: also start forward listeners on ListenUnix Forgotten file from CL 112635. The integration tests didn't catch this because the integration tests never run (sshd isn't in $PATH usually), but even when $PATH is modified, it seems to have been failing for ages on both Debian jessie and stretch. I'll fix the tests and make them run in TryBots in later changes. Change-Id: I85fd3b6109a73990bc353a61da5f527b9a698501 Reviewed-on: https://go-review.googlesource.com/113056 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- ssh/streamlocal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh/streamlocal.go b/ssh/streamlocal.go index a2dccc6..b171b33 100644 --- a/ssh/streamlocal.go +++ b/ssh/streamlocal.go @@ -32,6 +32,7 @@ type streamLocalChannelForwardMsg struct { // ListenUnix is similar to ListenTCP but uses a Unix domain socket. func (c *Client) ListenUnix(socketPath string) (net.Listener, error) { + c.handleForwardsOnce.Do(c.handleForwards) m := streamLocalChannelForwardMsg{ socketPath, }