Add caching to the dns requests - is this good enough?

This commit is contained in:
Owen
2025-12-03 22:00:23 -05:00
parent 8c4d6e2e0a
commit 5dd5a56379
3 changed files with 77 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ type Manager struct {
sendHolepunchInterval time.Duration
}
const sendHolepunchIntervalMax = 3 * time.Second
const sendHolepunchIntervalMax = 60 * time.Second
const sendHolepunchIntervalMin = 1 * time.Second
// NewManager creates a new hole punch manager