Add wireguard server key pair generation

This commit is contained in:
Khanh Ngo 2020-04-20 00:15:25 +07:00
parent febf075f8d
commit d5ff0cb704
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
5 changed files with 113 additions and 8 deletions

View file

@ -13,7 +13,7 @@ type Server struct {
// ServerKeypair model
type ServerKeypair struct {
PrivateKey string `json:"private_key"`
PublicKey string `json:"pulbic_key"`
PublicKey string `json:"public_key"`
UpdatedAt time.Time `json:"updated_at"`
}