get ready for saving the keys

This commit is contained in:
idk 2018-12-25 01:45:42 -05:00
parent 564bf08803
commit fa15a55bbd
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
5 changed files with 72 additions and 21 deletions

View file

@ -19,5 +19,7 @@ func NewConn(conn *sam3.SAMConn, path string) (*Conn, error) {
}
func GenConn(conn *sam3.SAMConn, path string) *Conn {
return &Conn{SAMConn: conn, path: path}
var c = Conn{SAMConn: conn, path: path}
c.SaveKeys()
return &c
}