jl777 8 years ago
parent
commit
4711015109
  1. 4
      crypto777/iguana_utils.c
  2. 1
      iguana/m_notary

4
crypto777/iguana_utils.c

@ -364,8 +364,8 @@ int32_t decode_hex(unsigned char *bytes,int32_t n,char *hex)
memset(bytes,0,n); memset(bytes,0,n);
return(n); return(n);
} }
if ( hex[n-1] == '\n' || hex[n-1] == '\r' ) //if ( hex[n-1] == '\n' || hex[n-1] == '\r' )
hex[--n] = 0; // hex[--n] = 0;
if ( n == 0 || (hex[n*2+1] == 0 && hex[n*2] != 0) ) if ( n == 0 || (hex[n*2+1] == 0 && hex[n*2] != 0) )
{ {
if ( n > 0 ) if ( n > 0 )

1
iguana/m_notary

@ -11,7 +11,6 @@ gcc -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lnanomsg -lcurl -lssl -
myip=`curl -s4 checkip.amazonaws.com` myip=`curl -s4 checkip.amazonaws.com`
source pubkey.txt source pubkey.txt
echo make sure pubkey is ($pubkey)
sleep 4 sleep 4
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}" curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"

Loading…
Cancel
Save