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

Function wireGuardServerPublicKey

backend/wireguard/integration_e2e_test.go:176–183  ·  view source on GitHub ↗
(t *testing.T, wg *WireGuard)

Source from the content-addressed store, hash-verified

174}
175
176func wireGuardServerPublicKey(t *testing.T, wg *WireGuard) string {
177 t.Helper()
178 privateKey, err := wgtypes.ParseKey(wg.config.PrivateKey)
179 if err != nil {
180 t.Fatalf("failed to parse wireguard private key: %v", err)
181 }
182 return privateKey.PublicKey().String()
183}
184
185func startWGHTTPServerAtIP(t *testing.T, serverIP string) string {
186 t.Helper()

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected