From b0c88a1b19dcc2c65fe978d74d8b6637f4468eae Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 14 Jan 2016 14:49:38 -0300 Subject: [PATCH] test --- iguana/SuperNET.c | 1 + nanomsg/core/global.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iguana/SuperNET.c b/iguana/SuperNET.c index 7358839f6..d93925b68 100644 --- a/iguana/SuperNET.c +++ b/iguana/SuperNET.c @@ -482,6 +482,7 @@ void SuperNET_init(struct supernet_info *myinfo,uint16_t PUBport,uint16_t LBport myinfo->PUBpoint[0] = myinfo->LBpoint[0] = 0; myinfo->PUBport = myinfo->LBport = 0; myinfo->PUBsock = myinfo->LBsock = -1; + OS_randombytes(myinfo->myaddr.pubkey.bytes,sizeof(myinfo->myaddr.pubkey)); strcpy(myinfo->transport,"tcp"); if ( PUBport == 0 ) PUBport = SUPERNET_PUBPORT; diff --git a/nanomsg/core/global.c b/nanomsg/core/global.c index edf6d9f8f..68f666f28 100755 --- a/nanomsg/core/global.c +++ b/nanomsg/core/global.c @@ -228,10 +228,9 @@ void nn_global_init (void) nn_list_init(&SELF.socktypes); //PostMessage("transports init\n"); // Plug in individual transports. - nn_global_add_transport(nn_ipc); + //nn_global_add_transport(nn_ipc); nn_global_add_transport(nn_tcp); -//#ifdef NN_ENABLE_EXTRA - nn_global_add_transport(nn_inproc); + //nn_global_add_transport(nn_inproc); //nn_global_add_transport(nn_ws); //nn_global_add_transport(nn_tcpmux); //PostMessage("socktypes init\n"); @@ -246,7 +245,6 @@ void nn_global_init (void) nn_global_add_socktype(nn_surveyor_socktype); nn_global_add_socktype(nn_xrespondent_socktype); nn_global_add_socktype(nn_xsurveyor_socktype); -//#endif nn_global_add_socktype(nn_pub_socktype); nn_global_add_socktype(nn_sub_socktype); nn_global_add_socktype(nn_xpub_socktype);