Skip to content

Commit

Permalink
Fix server public key in Server.toWireGuardConfig function
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Feb 14, 2025
1 parent 3b3e647 commit 07367ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal fun Server.toWireGuardConfig(
Peer.Builder()
.setPublicKey(
Key.fromBase64(
this.publicKey
this.publicKey?.trim()
?: error("No Server public key found for server with id '${this.id}'. Cannot connect to server.")
)
)
Expand Down

0 comments on commit 07367ae

Please sign in to comment.