This commit is contained in:
Johan Siebens
2025-04-27 10:40:39 +02:00
parent 4c31c71593
commit 1ab135aa9a
+2 -2
View File
@@ -30,9 +30,9 @@ type TailnetRepository interface {
DeleteTailnet(ctx context.Context, id uint64) error DeleteTailnet(ctx context.Context, id uint64) error
} }
func (t Tailnet) GetDERPMap(ctx context.Context, fallack DefaultDERPMap) (*DERPMap, error) { func (t Tailnet) GetDERPMap(ctx context.Context, fallback DefaultDERPMap) (*DERPMap, error) {
if t.DERPMap.Checksum == "" { if t.DERPMap.Checksum == "" {
return fallack.GetDERPMap(ctx) return fallback.GetDERPMap(ctx)
} else { } else {
return &t.DERPMap, nil return &t.DERPMap, nil
} }