summaryrefslogtreecommitdiff
path: root/src/wireguard.go
diff options
context:
space:
mode:
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 {