From 0fee3ebfd9bdd188051874c4cb38f98b9dec6d75 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 31 Mar 2017 10:24:47 +0300 Subject: [PATCH] Agama:// --- iguana/iguana_rpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_rpc.c b/iguana/iguana_rpc.c index 26fc9ac0b..554624dc2 100755 --- a/iguana/iguana_rpc.c +++ b/iguana/iguana_rpc.c @@ -874,7 +874,9 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz originstr = &urlstr[i + strlen(fieldstr)]; if ( strncmp(originstr,"http://127.0.0.",strlen("http://127.0.0.")) == 0 ) originstr = "http://127.0.0.1:"; - else if ( strncmp(originstr,"file://",strlen("file://")) == 0 ) //127.0.0. + else if ( strncmp(originstr,"agama://",strlen("agama://")) == 0 ) + originstr = "http://127.0.0.1:"; + else if ( strncmp(originstr,"file://127.0.0.",strlen("file://127.0.0.")) == 0 ) originstr = "http://127.0.0.1:"; else if ( strncmp(originstr,"chrome-extension://",strlen("chrome-extension://")) == 0 ) originstr = "http://127.0.0.1:";