mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-12 11:14:24 +00:00
Lint fix
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
b98bf199dd
commit
da5c051d73
5
db.go
5
db.go
@ -110,7 +110,10 @@ func (h *Headscale) initDB() error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
err = db.Preload("Machine").Where("machine_id = ? AND prefix = ?", machine.ID, IPPrefix(prefix)).First(&Route{}).Error
|
err = db.Preload("Machine").
|
||||||
|
Where("machine_id = ? AND prefix = ?", machine.ID, IPPrefix(prefix)).
|
||||||
|
First(&Route{}).
|
||||||
|
Error
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Info().
|
log.Info().
|
||||||
Str("enabled_route", prefix.String()).
|
Str("enabled_route", prefix.String()).
|
||||||
|
Loading…
Reference in New Issue
Block a user