summaryrefslogtreecommitdiff
path: root/src/wireguard.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-20 14:28:08 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-20 14:28:08 +0200
commit1c54936626a4a30d0c6f69576a06ba3661f39dc6 (patch)
tree426c76b4c55cf9a9efbc7bd1aa957baec57b2892 /src/wireguard.go
parent77c9f266553cbadfd5fb150a26c2162b705f151e (diff)
Profiles: Implement SetProfileID instead of getting generic data
Diffstat (limited to 'src/wireguard.go')
-rw-r--r--src/wireguard.go3
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 {