Skip to content

Commit dd62954

Browse files
authored
Merge pull request #33 from coder/spike/magicsock-logging-rebase
Log when magicsock stops using endpoint
2 parents ebed8c9 + ecdde95 commit dd62954

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wgengine/magicsock/endpoint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ func (de *endpoint) deleteEndpointLocked(why string, ep netip.AddrPort) {
196196
})
197197
delete(de.endpointState, ep)
198198
if de.bestAddr.AddrPort == ep {
199+
de.c.logf("magicsock: disco: node %s %s now using DERP only (endpoint %s deleted)",
200+
de.publicKey.ShortString(), de.discoShort(), ep)
199201
de.debugUpdates.Add(EndpointChange{
200202
When: time.Now(),
201203
What: "deleteEndpointLocked-bestAddr-" + why,

0 commit comments

Comments
 (0)