diff --git a/README.md b/README.md index f6e301d..8f965eb 100644 --- a/README.md +++ b/README.md @@ -344,11 +344,6 @@ Overall, contributions and ideas should revolve around strenghening its core/tra or around enhancing its interoperability with as much Go code/programs as possible. - [ ] Add support for encrypted sqlite by default. -- [ ] Encrypt in-memory channels, or add option for it. -- [ ] Simpler/different listener/dialer backend interfaces, if it appears needed. -- [ ] Abstract away the client-side authentication, for pluggable auth/credential models. - [ ] Replace logrus entirely and restructure behind a single package used by both client/server. -- [ ] Review/refine/strenghen the dialer/listener init/close/start process, if it appears needed. -- [ ] `teamclient update` downloads latest version of the server binary + method to `team.Client` for it. - [ ] Implement tests for most sensitive paths (certificates management, database functioning, etc) diff --git a/client/client.go b/client/client.go index 38ff03c..e226745 100644 --- a/client/client.go +++ b/client/client.go @@ -186,7 +186,7 @@ func (tc *Client) Connect(options ...Options) (err error) { // If the teamclient has been passed the WithNoDisconnect() option, it won't // disconnect. func (tc *Client) Disconnect() error { - if tc.opts.console { + if tc.opts.noDisconnect { return nil } diff --git a/client/options.go b/client/options.go index 858fd58..3604d74 100644 --- a/client/options.go +++ b/client/options.go @@ -46,7 +46,7 @@ type opts struct { noLogs bool logFile string inMemory bool - console bool + noDisconnect bool stdout io.Writer config *Config logger *logrus.Logger @@ -211,6 +211,6 @@ func WithDialer(dialer Dialer) Options { // This option can only be used once, and should be passed client.New(). func WithNoDisconnect() Options { return func(opts *opts) { - opts.console = true + opts.noDisconnect = true } }