disco: move disco pcap helper to disco package

Updates tailscale/corp#13464

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2023-07-26 12:06:03 -07:00
committed by Dave Anderson
parent cde37f5307
commit 9a76deb4b0
4 changed files with 52 additions and 42 deletions

View File

@@ -858,7 +858,7 @@ func (de *endpoint) handlePongConnLocked(m *disco.Pong, di *discoInfo, src netip
de.mu.Lock()
defer de.mu.Unlock()
isDerp := src.Addr() == derpMagicIPAddr
isDerp := src.Addr() == tailcfg.DerpMagicIPAddr
sp, ok := de.sentPing[m.TxID]
if !ok {