|
|
@ -33,12 +33,12 @@ namespace llarp
|
|
|
|
if(!bencode_start_dict(buf))
|
|
|
|
if(!bencode_start_dict(buf))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if(!inet_ntop(AF_INET6, (void*)&address, tmp, sizeof(tmp)))
|
|
|
|
if(!inet_ntop(AF_INET6, address.s6_addr, tmp, sizeof(tmp)))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
if(!BEncodeWriteDictString("a", std::string(tmp), buf))
|
|
|
|
if(!BEncodeWriteDictString("a", std::string(tmp), buf))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if(!inet_ntop(AF_INET6, (void*)&netmask, tmp, sizeof(tmp)))
|
|
|
|
if(!inet_ntop(AF_INET6, netmask.s6_addr, tmp, sizeof(tmp)))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
if(!BEncodeWriteDictString("b", std::string(tmp), buf))
|
|
|
|
if(!BEncodeWriteDictString("b", std::string(tmp), buf))
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|