diff options
Diffstat (limited to 'internal/wireguard/wireguard.go')
| -rw-r--r-- | internal/wireguard/wireguard.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/wireguard/wireguard.go b/internal/wireguard/wireguard.go index d9bd974..7da2623 100644 --- a/internal/wireguard/wireguard.go +++ b/internal/wireguard/wireguard.go @@ -10,7 +10,7 @@ import ( ) // GenerateKey generates a WireGuard private key using wgctrl -// It returns an error if key generation failed +// It returns an error if key generation failed. func GenerateKey() (wgtypes.Key, error) { key, keyErr := wgtypes.GeneratePrivateKey() @@ -24,7 +24,7 @@ func GenerateKey() (wgtypes.Key, error) { } // ConfigAddKey takes the WireGuard configuration and adds the PrivateKey to the right section -// FIXME: Instead of doing a regex replace, decide if we should use a parser +// FIXME: Instead of doing a regex replace, decide if we should use a parser. func ConfigAddKey(config string, key wgtypes.Key) string { interfaceSection := "[Interface]" InterfaceSectionEscaped := regexp.QuoteMeta(interfaceSection) |
