diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 12:50:23 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-11-28 12:50:23 +0100 |
| commit | 7bab6c76599fdfd34ea9bb064d871ed2be01d4c8 (patch) | |
| tree | 8200ead8926c0c5f11f750698760a0bcd93c230c /internal/wireguard | |
| parent | 7339e77c6eda5b96874dfc099d5c58da8ed53629 (diff) | |
Lint: Run godot fix
Full command: golangci-lint run --disable-all -E godot --fix
Diffstat (limited to 'internal/wireguard')
| -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) |
