Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
74aa3e9ace
  1. 4
      basilisk/basilisk.c

4
basilisk/basilisk.c

@ -151,8 +151,8 @@ int32_t basilisk_sendcmd(struct supernet_info *myinfo,char *destipaddr,char *typ
for (s=0; s<n; s++)
if ( alreadysent[s] == addr->ipbits )
break;
printf("%s s.%d vs n.%d\n",addr->ipaddr,s,n);
if ( s == n && addr->supernet != 0 && (destipaddr == 0 || strcmp(addr->ipaddr,destipaddr) == 0) )
//printf("%s s.%d vs n.%d\n",addr->ipaddr,s,n);
if ( s == n && (addr->supernet != 0 || addr->basilisk != 0) && (destipaddr == 0 || strcmp(addr->ipaddr,destipaddr) == 0) )
{
printf("[%s] send %s.(%s) addr->supernet.%u to (%s).%d destip.%s\n",cmd,type,(char *)&data[4],addr->supernet,addr->ipaddr,addr->A.port,destipaddr!=0?destipaddr:"broadcast");
if ( encryptflag != 0 && bits256_nonz(addr->pubkey) != 0 )

Loading…
Cancel
Save