ConfigFile: WgQuickConfigFileWriter: Fix '[Peer]' section header

This commit is contained in:
Roopesh Chander 2018-11-01 16:13:30 +05:30
parent 2d6426f798
commit c056000b55
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class WgQuickConfigFileWriter {
output.append("\n")
for peer in tc.peers {
output.append("[Peers]\n")
output.append("[Peer]\n")
output.append("PublicKey=\(peer.publicKey.base64EncodedString())\n")
if let preSharedKey = peer.preSharedKey {
output.append("PresharedKey=\(preSharedKey.base64EncodedString())\n")