mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-08-07 17:59:30 +01:00
updated to 2.51.0
This commit is contained in:
parent
cf0c9c9d74
commit
d7a079ad64
10 changed files with 17 additions and 12 deletions
11
famtool.cpp
11
famtool.cpp
|
@ -197,7 +197,7 @@ int main(int argc, char * argv[])
|
|||
return 0;
|
||||
}
|
||||
|
||||
InitCrypto(false, true, true, false);
|
||||
InitCrypto(false, true, false);
|
||||
|
||||
if(!fam.size()) {
|
||||
// no family name
|
||||
|
@ -319,7 +319,10 @@ int main(int argc, char * argv[])
|
|||
delete [] k;
|
||||
}
|
||||
|
||||
LocalRouterInfo ri(infofile);
|
||||
RouterInfo routerInfo(infofile);
|
||||
LocalRouterInfo ri;
|
||||
ri.Update (routerInfo.GetBuffer (), routerInfo.GetBufferLen ());
|
||||
|
||||
auto ident = ri.GetIdentHash();
|
||||
|
||||
|
||||
|
@ -365,7 +368,9 @@ int main(int argc, char * argv[])
|
|||
|
||||
if (verbose) std::cout << "load " << infofile << std::endl;
|
||||
|
||||
LocalRouterInfo ri(infofile);
|
||||
RouterInfo routerInfo(infofile);
|
||||
LocalRouterInfo ri;
|
||||
ri.Update (routerInfo.GetBuffer (), routerInfo.GetBufferLen ());
|
||||
auto sig = ri.GetProperty(ROUTER_INFO_PROPERTY_FAMILY_SIG);
|
||||
if (ri.GetProperty(ROUTER_INFO_PROPERTY_FAMILY) != fam) {
|
||||
std::cout << infofile << " does not belong to " << fam << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue