Skip to content

Commit

Permalink
Add \n to string
Browse files Browse the repository at this point in the history
Worked without but looks more complete with it there
  • Loading branch information
jamesgol committed Sep 24, 2022
1 parent 49faa6e commit c280489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/certs/wireguard.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func saveWGKeys(isPeer bool, wgPeerTunIP string, privKey string, pubKey string)
}
core.EventBroker.Publish(core.Event{
EventType: consts.WireGuardNewPeer,
Data: []byte(fmt.Sprintf("public_key=%s\nallowed_ip=%s/32", pubKey, wgPeerTunIP)),
Data: []byte(fmt.Sprintf("public_key=%s\nallowed_ip=%s/32\n", pubKey, wgPeerTunIP)),
})


Expand Down

0 comments on commit c280489

Please sign in to comment.