File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -245,13 +245,13 @@ func (a *agent) trackConnGoroutine(fn func()) error {
245
245
return nil
246
246
}
247
247
248
- func (a * agent ) createTailnet (ctx context.Context , derpMap * tailcfg.DERPMap ) (network * tailnet.Conn , err error ) {
248
+ func (a * agent ) createTailnet (ctx context.Context , derpMap * tailcfg.DERPMap ) (_ * tailnet.Conn , err error ) {
249
249
a .closeMutex .Lock ()
250
250
if a .isClosed () {
251
251
a .closeMutex .Unlock ()
252
252
return nil , xerrors .New ("closed" )
253
253
}
254
- network , err = tailnet .NewConn (& tailnet.Options {
254
+ network , err : = tailnet .NewConn (& tailnet.Options {
255
255
Addresses : []netip.Prefix {netip .PrefixFrom (codersdk .TailnetIP , 128 )},
256
256
DERPMap : derpMap ,
257
257
Logger : a .logger .Named ("tailnet" ),
@@ -266,7 +266,6 @@ func (a *agent) createTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) (ne
266
266
network .Close ()
267
267
}
268
268
}()
269
- a .network = network
270
269
a .closeMutex .Unlock ()
271
270
272
271
sshListener , err := network .Listen ("tcp" , ":" + strconv .Itoa (codersdk .TailnetSSHPort ))
You can’t perform that action at this time.
0 commit comments