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

Method getConfigureDevice

backend/wireguard/manager.go:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (m *Manager) getConfigureDevice() configureDeviceFunc {
107 if m.configure == nil {
108 return defaultConfigureDevice
109 }
110 return m.configure
111}
112
113func buildInitialWGConfig(privateKey wgtypes.Key, listenPort int, peers []wgtypes.PeerConfig) wgtypes.Config {
114 config := wgtypes.Config{

Callers 2

InitializeWithPeersMethod · 0.95
ApplyConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected