From 17141b07d1b6678078cdde07f9079691515d9449 Mon Sep 17 00:00:00 2001 From: Steven Honson Date: Wed, 8 May 2019 22:29:44 +1000 Subject: conf: read presharedkey as a hexstring when converting to uapi Signed-off-by: Steven Honson --- conf/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf') 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() { -- cgit v1.2.3-59-g8ed1b