MCPcopy Index your code
hub / github.com/coder/coder / isDERPPath

Function isDERPPath

cli/server.go:2542–2548  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

2540}
2541
2542func isDERPPath(p string) bool {
2543 segments := strings.SplitN(p, "/", 3)
2544 if len(segments) < 2 {
2545 return false
2546 }
2547 return segments[1] == "derp"
2548}
2549
2550// isReplicaRelayRequest returns true when the request was sent by
2551// another coderd replica as part of cross-replica streaming. The

Callers 2

redirectToAccessURLFunction · 0.85
TestIsDERPPathFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsDERPPathFunction · 0.68