mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 20:26:45 +00:00
Add caching to the dns requests - is this good enough?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user