Removed unused code and linting fixes
Another bunch of gosec/golint related fixes Remove method no longer used
This commit is contained in:
parent
a506d0fcc8
commit
8170f5e693
5 changed files with 51 additions and 49 deletions
|
@ -53,7 +53,15 @@ func (h *Headscale) handlePollCommon(
|
|||
}
|
||||
|
||||
// update routes with peer information
|
||||
h.EnableAutoApprovedRoutes(machine)
|
||||
err = h.EnableAutoApprovedRoutes(machine)
|
||||
if err != nil {
|
||||
log.Error().
|
||||
Caller().
|
||||
Bool("noise", isNoise).
|
||||
Str("machine", machine.Hostname).
|
||||
Err(err).
|
||||
Msg("Error running auto approved routes")
|
||||
}
|
||||
}
|
||||
|
||||
// From Tailscale client:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue