File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ import (
19
19
gosshagent "golang.org/x/crypto/ssh/agent"
20
20
"golang.org/x/term"
21
21
"golang.org/x/xerrors"
22
+ tslogger "tailscale.com/types/logger"
22
23
23
24
"github.com/coder/coder/cli/cliflag"
24
25
"github.com/coder/coder/cli/cliui"
25
26
"github.com/coder/coder/coderd/autobuild/notify"
26
27
"github.com/coder/coder/coderd/util/ptr"
27
28
"github.com/coder/coder/codersdk"
28
29
"github.com/coder/coder/cryptorand"
30
+ "github.com/coder/coder/peer/peerwg"
29
31
)
30
32
31
33
var workspacePollInterval = time .Minute
@@ -112,7 +114,7 @@ func ssh() *cobra.Command {
112
114
newSSHClient = conn .SSHClient
113
115
} else {
114
116
// TODO: more granual control of Tailscale logging.
115
- // peerwg.Logf = tslogger.Discard
117
+ peerwg .Logf = tslogger .Discard //nolint
116
118
117
119
// ipv6 := peerwg.UUIDToNetaddr(uuid.New())
118
120
// wgn, err := peerwg.New(
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ func wireguardPortForward() *cobra.Command {
176
176
return cmd
177
177
}
178
178
179
+ //nolint:unused,deadcode
179
180
func listenAndPortForwardWireguard (ctx context.Context , cmd * cobra.Command ,
180
181
wgn * peerwg.Network ,
181
182
wg * sync.WaitGroup ,
You can’t perform that action at this time.
0 commit comments