Skip to content

Commit

Permalink
small cleanups (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
kradalby authored Jul 19, 2024
1 parent 11fde62 commit ca47d6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions hscontrol/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions hscontrol/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand All @@ -643,7 +642,6 @@ func PrefixV6() (*netip.Prefix, error) {
}

builder := netipx.IPSetBuilder{}
builder.AddPrefix(tsaddr.CGNATRange())
builder.AddPrefix(tsaddr.TailscaleULARange())
ipSet, _ := builder.IPSet()

Expand Down

0 comments on commit ca47d6f

Please sign in to comment.