diff --git a/handler/routes.go b/handler/routes.go
index ea34b8a..9439977 100644
--- a/handler/routes.go
+++ b/handler/routes.go
@@ -231,6 +231,9 @@ func NewClient(db store.IStore) echo.HandlerFunc {
})
}
client.PresharedKey = presharedKey.String()
+ } else if client.PresharedKey == "-" {
+ client.PresharedKey = ""
+ log.Infof("skipped PresharedKey generation for user: %v", client.Name)
} else {
_, err := wgtypes.ParseKey(client.PresharedKey)
if err != nil {
diff --git a/templates/base.html b/templates/base.html
index d92e107..03d91bf 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -206,7 +206,7 @@
Public and Preshared Keys
@@ -220,7 +220,7 @@
-
+