MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / hostName

Function hostName

internal/bridge/register.go:174–180  ·  view source on GitHub ↗

hostName returns the machine's hostname, falling back to "unknown".

()

Source from the content-addressed store, hash-verified

172
173// hostName returns the machine's hostname, falling back to "unknown".
174func hostName() string {
175 h, err := os.Hostname()
176 if err != nil {
177 return "unknown"
178 }
179 return h
180}

Callers 1

registerSessionRPCMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected