From b6b6d239c17e15776c5d3107e976b6ce4198568b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 23 Aug 2016 01:29:12 -0300 Subject: [PATCH] test --- iguana/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iguana/main.c b/iguana/main.c index 3f14187de..09c460fd6 100755 --- a/iguana/main.c +++ b/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 )