forked from cwtch.im/cwtch
1
0
Fork 0

add path to SetProfile (fixes #102)

This commit is contained in:
kardan 2018-08-05 01:32:40 +02:00
parent 195278325b
commit 07b4ca65df
1 changed files with 1 additions and 1 deletions

View File

@ -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
}