|
|
@ -174,6 +174,8 @@ char *pangea_jsondatacmd(struct supernet_info *myinfo,bits256 tablehash,struct p |
|
|
|
jaddstr(argjson,"cmd",cmdstr); |
|
|
|
if ( myinfo->ipaddr[0] == 0 || strncmp(myinfo->ipaddr,"127.0.0.1",strlen("127.0.0.1")) == 0 ) |
|
|
|
return(clonestr("{\"error\":\"need to send your ipaddr for now\"}")); |
|
|
|
jaddstr(argjson,"agent","SuperNET"); |
|
|
|
jaddstr(argjson,"method","DHT"); |
|
|
|
jaddstr(argjson,"playeripaddr",ipaddr); |
|
|
|
jaddbits256(argjson,"categoryhash",pangeahash); |
|
|
|
jaddbits256(argjson,"subhash",tablehash); |
|
|
|