MCPcopy Create free account
hub / github.com/google/pprof / isLocalhost

Function isLocalhost

internal/driver/webui.go:231–233  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

229}
230
231func isLocalhost(host string) bool {
232 return slices.Contains([]string{"localhost", "127.0.0.1", "[::1]", "::1"}, host)
233}
234
235func openBrowser(url string, o *plugin.Options) {
236 // Construct URL.

Callers 2

defaultWebServerFunction · 0.85
TestIsLocalHostFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsLocalHostFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…