MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / redactEndpoint

Function redactEndpoint

cmd/client/diagnostics.go:321–330  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

319}
320
321func redactEndpoint(s string) string {
322 if s == "" {
323 return ""
324 }
325 u, err := url.Parse(s)
326 if err != nil || u.Scheme == "" {
327 return "<redacted endpoint>"
328 }
329 return u.Scheme + "://<redacted>"
330}

Callers 1

redactJSONValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected