diff --git a/libretroshare/src/dbase/cachestrapper.cc b/libretroshare/src/dbase/cachestrapper.cc index 52c602457..307aa103a 100644 --- a/libretroshare/src/dbase/cachestrapper.cc +++ b/libretroshare/src/dbase/cachestrapper.cc @@ -832,9 +832,20 @@ bool CacheStrapper::loadList(std::list load) CacheData cd; cd.pid = rscc->pid; - peerConnectState pca; - mConnMgr->getFriendNetStatus(rscc->pid, pca); - cd.pname = pca.name; + + if(cd.pid == mConnMgr->getOwnId()) + { + peerConnectState pca; + mConnMgr->getOwnNetStatus(pca); + cd.pname = pca.name+" ("+pca.location+")"; + } + else + { + peerConnectState pca; + mConnMgr->getFriendNetStatus(rscc->pid, pca); + cd.pname = pca.name+" ("+pca.location+")"; + } + cd.cid.type = rscc->cachetypeid; cd.cid.subid = rscc->cachesubid; cd.path = rscc->path;