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