From ca47d6f353701b9a475abac497f3ed0bdb8ffb49 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 19 Jul 2024 09:21:14 +0200 Subject: [PATCH] small cleanups (#2017) --- hscontrol/app.go | 5 ----- hscontrol/types/config.go | 2 -- 2 files changed, 7 deletions(-) diff --git a/hscontrol/app.go b/hscontrol/app.go index 0a23f07d23..fe025adcbe 100644 --- a/hscontrol/app.go +++ b/hscontrol/app.go @@ -80,11 +80,6 @@ const ( registerCacheCleanup = time.Minute * 20 ) -// func init() { -// deadlock.Opts.DeadlockTimeout = 15 * time.Second -// deadlock.Opts.PrintAllCurrentGoroutines = true -// } - // Headscale represents the base app of the service. type Headscale struct { cfg *types.Config diff --git a/hscontrol/types/config.go b/hscontrol/types/config.go index 6eae9a32f8..2143d18265 100644 --- a/hscontrol/types/config.go +++ b/hscontrol/types/config.go @@ -619,7 +619,6 @@ func PrefixV4() (*netip.Prefix, error) { builder := netipx.IPSetBuilder{} builder.AddPrefix(tsaddr.CGNATRange()) - builder.AddPrefix(tsaddr.TailscaleULARange()) ipSet, _ := builder.IPSet() if !ipSet.ContainsPrefix(prefixV4) { log.Warn(). @@ -643,7 +642,6 @@ func PrefixV6() (*netip.Prefix, error) { } builder := netipx.IPSetBuilder{} - builder.AddPrefix(tsaddr.CGNATRange()) builder.AddPrefix(tsaddr.TailscaleULARange()) ipSet, _ := builder.IPSet()