mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-07 16:17:41 +00:00
stunner: correct minor lint errors.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
9ac1dda0d9
commit
8a339a6819
@ -36,7 +36,6 @@ type Stunner struct {
|
|||||||
Logf func(format string, args ...interface{})
|
Logf func(format string, args ...interface{})
|
||||||
|
|
||||||
sessions map[string]*session
|
sessions map[string]*session
|
||||||
tIDs map[string][][12]byte
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type session struct {
|
type session struct {
|
||||||
@ -179,7 +178,7 @@ func (s *Stunner) sendSTUN(ctx context.Context, tID [12]byte, server string) err
|
|||||||
|
|
||||||
req := stun.Request(tID)
|
req := stun.Request(tID)
|
||||||
if _, err := s.Send(req, addr); err != nil {
|
if _, err := s.Send(req, addr); err != nil {
|
||||||
return fmt.Errorf("Send: %v", err)
|
return fmt.Errorf("send: %v", err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user