jl777 7 years ago
parent
commit
81cb957ce5
  1. 4
      iguana/dpow/dpow_network.c

4
iguana/dpow/dpow_network.c

@ -1358,9 +1358,9 @@ void dpow_nanomsginit(struct supernet_info *myinfo,char *ipaddr)
if ( dpowsock < 0 && (dpowsock= nn_socket(AF_SP,NN_BUS)) >= 0 ) if ( dpowsock < 0 && (dpowsock= nn_socket(AF_SP,NN_BUS)) >= 0 )
{ {
sprintf(bindpoint,"tcp://*:%u",Notaries_port); sprintf(bindpoint,"tcp://*:%u",Notaries_port);
if ( nn_bind(dpowsock,bindpoing)) < 0 ) //nanomsg_tcpname(myinfo,str,myinfo->ipaddr,Notaries_port if ( nn_bind(dpowsock,bindpoint)) < 0 ) //nanomsg_tcpname(myinfo,str,myinfo->ipaddr,Notaries_port
{ {
printf("error binding to dpowsock (%s)\n",nanomsg_tcpname(myinfo,str,myinfo->ipaddr,Notaries_port)); printf("error binding to dpowsock (%s)\n",bindpoint);
nn_close(dpowsock); nn_close(dpowsock);
dpowsock = -1; dpowsock = -1;
} }

Loading…
Cancel
Save