You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: include if direct connection is over private network in ping diagnostics (coder#15313)
Whilst the `networking-troubleshooting` docs page already mentions that
a direct connection can be established over a private network, even if
there are no STUN servers, it's worth this is the case at the end of the
ping output.
This also removes a print statement that was dirtying up the diagnostic
output, and corrects the name of the `--disable-direct-connections`
flag.
_, _=fmt.Fprintf(inv.Stderr, "✔ You are connected directly (p2p)\n")
285
+
ifp2p {
286
+
msg:="✔ You are connected directly (p2p)"
287
+
ifpong!=nil&&isPrivateEndpoint(pong.Endpoint) {
288
+
msg+=", over a private network"
289
+
}
290
+
_, _=fmt.Fprintln(inv.Stderr, msg)
280
291
} else {
281
-
_, _=fmt.Fprintf(inv.Stderr, "❗ You are connected via a DERP relay, not directly (p2p)\n%s#common-problems-with-direct-connections\n", connDiags.TroubleshootingURL)
292
+
_, _=fmt.Fprintf(inv.Stderr, "❗ You are connected via a DERP relay, not directly (p2p)\n"+
0 commit comments