Actually load keys in loadkeys and find keys in findkeys

This commit is contained in:
idk 2018-12-25 04:41:34 -05:00
parent b40b2f03af
commit 574bb777d0
No known key found for this signature in database
GPG key ID: D75C03B39B5E14E1
4 changed files with 66 additions and 7 deletions

View file

@ -71,8 +71,10 @@ func (m Manager) Cleanup() error {
return m.SAM.Close()
}
func NewManager(samhost, samport, datadir string, samopts []string) (*Manager, error) {
func NewManager(host, port, samhost, samport, datadir string, samopts []string) (*Manager, error) {
return NewManagerFromOptions(
SetSocksHost(host),
SetSocksPort(port),
SetHost(samhost),
SetPort(samport),
SetDataDir(datadir),