This commit is contained in:
jdl
2025-08-26 19:12:07 +02:00
parent 1ca55158c2
commit 6382c13d1a
5 changed files with 44 additions and 30 deletions

View File

@@ -6,7 +6,6 @@ import (
"net/netip"
"strings"
"sync/atomic"
"time"
"vppn/m"
)
@@ -51,7 +50,7 @@ func newRemote(g Globals, remotePeerIP byte) *Remote {
Globals: g,
RemotePeerIP: remotePeerIP,
dupCheck: newDupCheck(0),
sendCounter: uint64(time.Now().Unix()<<30) + 1,
sendCounter: (uint64(g.StartupCount) << 48) + 1,
messages: make(chan any, 8),
}
r.config.Store(&remoteConfig{})