mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Removed unnecessary block before get request. Possible bug fix for Synology NAS ticket #27
This commit is contained in:
parent
15d0aad3c0
commit
7dbccf08ae
1 changed files with 0 additions and 4 deletions
4
one.cpp
4
one.cpp
|
@ -633,10 +633,6 @@ static int cli(int argc,char **argv)
|
|||
fprintf(stderr,"invalid network ID format, must be a 16-digit hexidecimal number\n");
|
||||
return 2;
|
||||
}
|
||||
char jsons[1024], cl[128];
|
||||
OSUtils::ztsnprintf(cl,sizeof(cl),"%u",(unsigned int)strlen(jsons));
|
||||
requestHeaders["Content-Type"] = "application/json";
|
||||
requestHeaders["Content-Length"] = cl;
|
||||
const unsigned int scode = Http::GET(1024 * 1024 * 16,60000,(const struct sockaddr *)&addr,"/network",requestHeaders,responseHeaders,responseBody);
|
||||
|
||||
if (scode == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue