MCPcopy Create free account
hub / github.com/PasarGuard/node / defaultConfigureDevice

Function defaultConfigureDevice

backend/wireguard/manager.go:57–59  ·  view source on GitHub ↗
(client wgClient, interfaceName string, config wgtypes.Config)

Source from the content-addressed store, hash-verified

55type configureDeviceFunc func(client wgClient, interfaceName string, config wgtypes.Config) error
56
57func defaultConfigureDevice(client wgClient, interfaceName string, config wgtypes.Config) error {
58 return client.ConfigureDevice(interfaceName, config)
59}
60
61func wrapPermissionDeniedError(action string, err error) error {
62 if err == nil {

Callers

nothing calls this directly

Calls 1

ConfigureDeviceMethod · 0.65

Tested by

no test coverage detected