diff --git a/libretroshare/src/pgp/rscertificate.cc b/libretroshare/src/pgp/rscertificate.cc index a8cef7f7e..136f67a89 100644 --- a/libretroshare/src/pgp/rscertificate.cc +++ b/libretroshare/src/pgp/rscertificate.cc @@ -7,6 +7,7 @@ #include #include #include "rscertificate.h" +#include "util/rsstring.h" //#define DEBUG_RSCERTIFICATE @@ -154,7 +155,8 @@ RsCertificate::RsCertificate(const RsPeerDetails& Detail, const unsigned char *b if (Detail.isHiddenNode) { hidden_node = true; - hidden_node_address = Detail.hiddenNodeAddress; + hidden_node_address = Detail.hiddenNodeAddress; + rs_sprintf_append(hidden_node_address, ":%u", Detail.hiddenNodePort); memset(ipv4_internal_ip_and_port,0,6) ; memset(ipv4_external_ip_and_port,0,6) ;