MCPcopy Create free account
hub / github.com/encodeous/nylon / sockPath

Function sockPath

polyamide/ipc/uapi_unix.go:31–33  ·  view source on GitHub ↗
(iface string)

Source from the content-addressed store, hash-verified

29var socketDirectory = "/var/run/wireguard"
30
31func sockPath(iface string) string {
32 return fmt.Sprintf("%s/%s.sock", socketDirectory, iface)
33}
34
35func UAPIOpen(name string) (*os.File, error) {
36 if err := os.MkdirAll(socketDirectory, 0o755); err != nil {

Callers 4

UAPIListenFunction · 0.85
UAPIOpenFunction · 0.85
UAPIDialFunction · 0.85
UAPIListenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected