From 07b4ca65df7338de761c920a114fe29bd84cd210 Mon Sep 17 00:00:00 2001 From: kardan Date: Sun, 5 Aug 2018 01:32:40 +0200 Subject: [PATCH] add path to SetProfile (fixes #102) --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index e24304b..f2beb32 100644 --- a/app/app.go +++ b/app/app.go @@ -70,7 +70,7 @@ func (app *Application) startTor(torPath string) error { // SetProfile loads an existing profile from the given filename. func (app *Application) SetProfile(filename string, password string) error { - profile, err := peer.LoadCwtchPeer(filename, password) + profile, err := peer.LoadCwtchPeer(path.Join(app.directory, filename), password) if err != nil { return err } -- 2.25.1