mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
small cleanups (#2017)
This commit is contained in:
parent
11fde62b8c
commit
ca47d6f353
@ -80,11 +80,6 @@ const (
|
|||||||
registerCacheCleanup = time.Minute * 20
|
registerCacheCleanup = time.Minute * 20
|
||||||
)
|
)
|
||||||
|
|
||||||
// func init() {
|
|
||||||
// deadlock.Opts.DeadlockTimeout = 15 * time.Second
|
|
||||||
// deadlock.Opts.PrintAllCurrentGoroutines = true
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Headscale represents the base app of the service.
|
// Headscale represents the base app of the service.
|
||||||
type Headscale struct {
|
type Headscale struct {
|
||||||
cfg *types.Config
|
cfg *types.Config
|
||||||
|
@ -619,7 +619,6 @@ func PrefixV4() (*netip.Prefix, error) {
|
|||||||
|
|
||||||
builder := netipx.IPSetBuilder{}
|
builder := netipx.IPSetBuilder{}
|
||||||
builder.AddPrefix(tsaddr.CGNATRange())
|
builder.AddPrefix(tsaddr.CGNATRange())
|
||||||
builder.AddPrefix(tsaddr.TailscaleULARange())
|
|
||||||
ipSet, _ := builder.IPSet()
|
ipSet, _ := builder.IPSet()
|
||||||
if !ipSet.ContainsPrefix(prefixV4) {
|
if !ipSet.ContainsPrefix(prefixV4) {
|
||||||
log.Warn().
|
log.Warn().
|
||||||
@ -643,7 +642,6 @@ func PrefixV6() (*netip.Prefix, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
builder := netipx.IPSetBuilder{}
|
builder := netipx.IPSetBuilder{}
|
||||||
builder.AddPrefix(tsaddr.CGNATRange())
|
|
||||||
builder.AddPrefix(tsaddr.TailscaleULARange())
|
builder.AddPrefix(tsaddr.TailscaleULARange())
|
||||||
ipSet, _ := builder.IPSet()
|
ipSet, _ := builder.IPSet()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user