mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
changed name of turtle tunnels into a more explicit and less losy name ;-)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2103 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e2b807aad7
commit
f42489d8e6
@ -162,7 +162,7 @@ void p3turtle::statusChange(const std::list<pqipeer> &plist) // derived from pqi
|
|||||||
void p3turtle::addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid)
|
void p3turtle::addDistantPeer(const TurtleFileHash&,TurtleTunnelId tid)
|
||||||
{
|
{
|
||||||
char buff[400] ;
|
char buff[400] ;
|
||||||
sprintf(buff,"Turtle tunnel %08x",tid) ;
|
sprintf(buff,"Anonymous F2F tunnel %08x",tid) ;
|
||||||
|
|
||||||
{
|
{
|
||||||
_virtual_peers[TurtleVirtualPeerId(buff)] = tid ;
|
_virtual_peers[TurtleVirtualPeerId(buff)] = tid ;
|
||||||
@ -1686,7 +1686,11 @@ static std::string printNumber(uint64_t num,bool hex=false)
|
|||||||
if(hex)
|
if(hex)
|
||||||
{
|
{
|
||||||
char tmp[100] ;
|
char tmp[100] ;
|
||||||
sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ;
|
|
||||||
|
if(num < (1<<32))
|
||||||
|
sprintf(tmp,"%08x", uint32_t(num)) ;
|
||||||
|
else
|
||||||
|
sprintf(tmp,"%08x%08x", uint32_t(num >> 32),uint32_t(num & ( (1<<32)-1 ))) ;
|
||||||
return std::string(tmp) ;
|
return std::string(tmp) ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user