aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf')
-rw-r--r--conf/writer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/writer.go b/conf/writer.go
index d9504178..ccc3024b 100644
--- a/conf/writer.go
+++ b/conf/writer.go
@@ -84,7 +84,7 @@ func (conf *Config) ToUAPI() (uapi string, dnsErr error) {
output.WriteString(fmt.Sprintf("public_key=%s\n", peer.PublicKey.HexString()))
if !peer.PresharedKey.IsZero() {
- output.WriteString(fmt.Sprintf("preshared_key = %s\n", peer.PresharedKey.String()))
+ output.WriteString(fmt.Sprintf("preshared_key=%s\n", peer.PresharedKey.HexString()))
}
if !peer.Endpoint.IsEmpty() {