diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2016-11-21 04:05:40 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2016-11-21 04:05:40 +0300 |
commit | b051754ced7fae8f40efc7b761b9b010ccc6d50f (patch) | |
tree | 1452b68ebc5fad250f4afc959894fc4e58cca577 /net-p2p/retroshare/files | |
parent | 4a7b24983d17408d721fd39120781b5d2be6df5c (diff) |
retroshare: bind address for hidden service, another fix
Diffstat (limited to 'net-p2p/retroshare/files')
-rw-r--r-- | net-p2p/retroshare/files/hidden_service.patch | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net-p2p/retroshare/files/hidden_service.patch b/net-p2p/retroshare/files/hidden_service.patch index 03768b7..29be6c2 100644 --- a/net-p2p/retroshare/files/hidden_service.patch +++ b/net-p2p/retroshare/files/hidden_service.patch @@ -43,12 +43,15 @@ index f85edb5..680a84f 100644 sockaddr_storage_ipv4_setport(loopback, port); diff --git a/libretroshare/src/rsserver/p3peers.cc b/libretroshare/src/rsserver/p3peers.cc -index d4b5fe3..22ef1b7 100644 +index d4b5fe3..372d4c8 100644 --- a/libretroshare/src/rsserver/p3peers.cc +++ b/libretroshare/src/rsserver/p3peers.cc -@@ -313,7 +313,7 @@ bool p3Peers::getPeerDetails(const RsPeerId& id, RsPeerDetails &d) +@@ -311,9 +311,9 @@ bool p3Peers::getPeerDetails(const RsPeerId& id, RsPeerDetails &d) + d.hiddenNodePort = ps.hiddenPort; + d.hiddenType = ps.hiddenType; - if(sockaddr_storage_isnull(ps.localaddr)) // that happens if the address is not initialised. +- if(sockaddr_storage_isnull(ps.localaddr)) // that happens if the address is not initialised. ++ if(sockaddr_storage_isnull(ps.localaddr) && id != sOwnId) // that happens if the address is not initialised. { - d.localAddr = "INVALID_IP"; + d.localAddr = "0.0.0.0"; |