mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-07 11:17:29 +00:00
Fix a *nix build issue.
This commit is contained in:
parent
d6414c9ff7
commit
ce1a03bde3
@ -225,7 +225,7 @@ int main(int argc,char **argv)
|
||||
response["nwid"] = request.get("nwid");
|
||||
response["type"] = "netconf-response";
|
||||
response["requestId"] = request.get("requestId");
|
||||
response["error"] = "NOT_FOUND";
|
||||
response["error"] = "OBJ_NOT_FOUND";
|
||||
std::string respm = response.toString();
|
||||
uint32_t respml = (uint32_t)htonl((uint32_t)respm.length());
|
||||
|
||||
|
@ -220,8 +220,8 @@ static void _netconfServiceMessageHandler(void *renv,Service &svc,const Dictiona
|
||||
if (msg.contains("error")) {
|
||||
Packet::ErrorCode errCode = Packet::ERROR_INVALID_REQUEST;
|
||||
const std::string &err = msg.get("error");
|
||||
if (err == "NOT_FOUND")
|
||||
errCode = Packet::ERROR_NOT_FOUND;
|
||||
if (err == "OBJ_NOT_FOUND")
|
||||
errCode = Packet::ERROR_OBJ_NOT_FOUND;
|
||||
|
||||
Packet outp(peerAddress,_r->identity.address(),Packet::VERB_ERROR);
|
||||
outp.append((unsigned char)Packet::VERB_NETWORK_CONFIG_REQUEST);
|
||||
|
Loading…
x
Reference in New Issue
Block a user