Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
b6b6d239c1
  1. 2
      iguana/main.c

2
iguana/main.c

@ -286,6 +286,8 @@ char *SuperNET_JSON(struct supernet_info *myinfo,cJSON *json,char *remoteaddr,ui
printf("no method in request.(%s)\n",jprint(json,0));
return(clonestr("{\"error\":\"no method\"}"));
}
if ( strcmp(method,"login") == 0 || strcmp(method,"logout") == 0 )
return(clonestr("{\"error\":\"login and logout are internal only functions\"}"));
if ( remoteaddr == 0 )
{
if ( jobj(json,"timestamp") != 0 )

Loading…
Cancel
Save