Add Notes field to client config

This commit is contained in:
Daniel Lundin
2019-07-27 11:01:07 +02:00
parent 0a5b178443
commit 40430182f5
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -27,6 +27,7 @@ type ClientConfig struct {
PrivateKey string
PublicKey string
IP net.IP
Notes string
}
func NewServerConfig(cfgPath string) *ServerConfig {
@@ -92,6 +93,7 @@ func NewClientConfig(ip net.IP) *ClientConfig {
PrivateKey: key.String(),
PublicKey: key.PublicKey().String(),
IP: ip,
Notes: "",
}
return &cfg