app add app directory path to filename to load

This commit is contained in:
Dan Ballard 2018-08-04 18:34:34 -05:00
rodzic 195278325b
commit da37046658
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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