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

Function shortScriptKey

internal/carrier/client.go:1511–1523  ·  view source on GitHub ↗
(scriptURL string)

Source from the content-addressed store, hash-verified

1509}
1510
1511func shortScriptKey(scriptURL string) string {
1512 parts := strings.Split(strings.Trim(scriptURL, "/"), "/")
1513 for i := 0; i < len(parts)-1; i++ {
1514 if parts[i] == "s" {
1515 id := parts[i+1]
1516 if len(id) > 14 {
1517 return id[:6] + "..." + id[len(id)-6:]
1518 }
1519 return id
1520 }
1521 }
1522 return "(unknown)"
1523}

Callers 7

DiagnoseMethod · 0.70
endpointStatsLineMethod · 0.70
pollOnceMethod · 0.70
markEndpointSuccessMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected