diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-20 14:28:08 +0200 |
| commit | 1c54936626a4a30d0c6f69576a06ba3661f39dc6 (patch) | |
| tree | 426c76b4c55cf9a9efbc7bd1aa957baec57b2892 /src/wireguard.go | |
| parent | 77c9f266553cbadfd5fb150a26c2162b705f151e (diff) | |
Profiles: Implement SetProfileID instead of getting generic data
Diffstat (limited to 'src/wireguard.go')
| -rw-r--r-- | src/wireguard.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wireguard.go b/src/wireguard.go index 3f7da40..2f1c41c 100644 --- a/src/wireguard.go +++ b/src/wireguard.go @@ -26,7 +26,8 @@ func wireguardConfigAddKey(config string, key wgtypes.Key) string { return interface_re.ReplaceAllString(config, to_replace) } -func (server *Server) WireguardGetConfig(profile_id string) (string, error) { +func (server *Server) WireguardGetConfig() (string, error) { + profile_id := server.Profiles.Current wireguardKey, wireguardErr := wireguardGenerateKey() if wireguardErr != nil { |
