diff --git a/README.md b/README.md
index 0cfed4dd..911fd2e4 100644
--- a/README.md
+++ b/README.md
@@ -232,13 +232,6 @@ make build
unreality
-
-
-
-
- Moritz Poldrack
-
- |
@@ -246,8 +239,22 @@ make build
ohdearaugustin
|
+
+
+
+
+ Moritz Poldrack
+
+ |
+
+
+
+
+ GrigoriyMikhalkin
+
+ |
@@ -262,13 +269,6 @@ make build
Eugen Biegler
|
-
-
-
-
- Aaron Bieber
-
- |
@@ -276,6 +276,13 @@ make build
Anton Schubert
|
+
+
+
+
+ Aaron Bieber
+
+ |
@@ -283,13 +290,6 @@ make build
Fernando De Lucchi
|
-
-
-
-
- GrigoriyMikhalkin
-
- |
@@ -496,6 +496,13 @@ make build
Pierre Carru
|
+
+
+
+
+ Rasmus Moorats
+
+ |
@@ -503,6 +510,8 @@ make build
rcursaru
|
+
+
@@ -510,8 +519,6 @@ make build
WhiteSource Renovate
|
-
-
@@ -526,6 +533,13 @@ make build
Shaanan Cohney
|
+
+
+
+
+ sophware
+
+ |
@@ -540,6 +554,8 @@ make build
Teteros
|
+
+
@@ -554,8 +570,6 @@ make build
Tianon Gravi
|
-
-
@@ -584,6 +598,8 @@ make build
Ziyuan Han
|
+
+
@@ -598,8 +614,6 @@ make build
henning mueller
|
-
-
@@ -628,6 +642,8 @@ make build
Wakeful-Cloud
|
+
+
diff --git a/api.go b/api.go
index 6324cca1..27cbede4 100644
--- a/api.go
+++ b/api.go
@@ -587,10 +587,12 @@ func (h *Headscale) handleMachineExpired(
if h.cfg.OIDC.Issuer != "" {
resp.AuthURL = fmt.Sprintf("%s/oidc/register/%s",
- strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
+ strings.TrimSuffix(h.cfg.ServerURL, "/"),
+ NodePublicKeyStripPrefix(registerRequest.NodeKey))
} else {
resp.AuthURL = fmt.Sprintf("%s/register/%s",
- strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
+ strings.TrimSuffix(h.cfg.ServerURL, "/"),
+ NodePublicKeyStripPrefix(registerRequest.NodeKey))
}
respBody, err := encode(resp, &machineKey, h.privateKey)
@@ -683,11 +685,12 @@ func (h *Headscale) handleMachineRegistrationNew(
resp.AuthURL = fmt.Sprintf(
"%s/oidc/register/%s",
strings.TrimSuffix(h.cfg.ServerURL, "/"),
- machineKey.String(),
+ NodePublicKeyStripPrefix(registerRequest.NodeKey),
)
} else {
resp.AuthURL = fmt.Sprintf("%s/register/%s",
- strings.TrimSuffix(h.cfg.ServerURL, "/"), NodePublicKeyStripPrefix(registerRequest.NodeKey))
+ strings.TrimSuffix(h.cfg.ServerURL, "/"),
+ NodePublicKeyStripPrefix(registerRequest.NodeKey))
}
respBody, err := encode(resp, &machineKey, h.privateKey)
|