mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
fix NetDb save bug, console cyrillic symbols, add files to project
This commit is contained in:
parent
72fcff35b6
commit
bc3bf838d9
|
@ -213,7 +213,7 @@ namespace data
|
||||||
{
|
{
|
||||||
if (it.second->IsUpdated ())
|
if (it.second->IsUpdated ())
|
||||||
{
|
{
|
||||||
std::ofstream r (GetFilePath(directory, it.second));
|
std::ofstream r (GetFilePath(directory, it.second), std::ofstream::binary);
|
||||||
r.write ((char *)it.second->GetBuffer (), it.second->GetBufferLen ());
|
r.write ((char *)it.second->GetBuffer (), it.second->GetBufferLen ());
|
||||||
it.second->SetUpdated (false);
|
it.second->SetUpdated (false);
|
||||||
count++;
|
count++;
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
<ClCompile Include="..\NTCPSession.cpp" />
|
<ClCompile Include="..\NTCPSession.cpp" />
|
||||||
<ClCompile Include="..\RouterContext.cpp" />
|
<ClCompile Include="..\RouterContext.cpp" />
|
||||||
<ClCompile Include="..\RouterInfo.cpp" />
|
<ClCompile Include="..\RouterInfo.cpp" />
|
||||||
|
<ClCompile Include="..\SSU.cpp" />
|
||||||
<ClCompile Include="..\Streaming.cpp" />
|
<ClCompile Include="..\Streaming.cpp" />
|
||||||
<ClCompile Include="..\TransitTunnel.cpp" />
|
<ClCompile Include="..\TransitTunnel.cpp" />
|
||||||
<ClCompile Include="..\Transports.cpp" />
|
<ClCompile Include="..\Transports.cpp" />
|
||||||
|
@ -48,6 +49,7 @@
|
||||||
<ClInclude Include="..\Queue.h" />
|
<ClInclude Include="..\Queue.h" />
|
||||||
<ClInclude Include="..\RouterContext.h" />
|
<ClInclude Include="..\RouterContext.h" />
|
||||||
<ClInclude Include="..\RouterInfo.h" />
|
<ClInclude Include="..\RouterInfo.h" />
|
||||||
|
<ClInclude Include="..\SSU.h" />
|
||||||
<ClInclude Include="..\Streaming.h" />
|
<ClInclude Include="..\Streaming.h" />
|
||||||
<ClInclude Include="..\Timestamp.h" />
|
<ClInclude Include="..\Timestamp.h" />
|
||||||
<ClInclude Include="..\TransitTunnel.h" />
|
<ClInclude Include="..\TransitTunnel.h" />
|
||||||
|
|
|
@ -72,6 +72,9 @@
|
||||||
<ClCompile Include="..\I2PEndian.cpp">
|
<ClCompile Include="..\I2PEndian.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\SSU.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\Identity.h">
|
<ClInclude Include="..\Identity.h">
|
||||||
|
@ -149,5 +152,8 @@
|
||||||
<ClInclude Include="..\I2PEndian.h">
|
<ClInclude Include="..\I2PEndian.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\SSU.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
8
i2p.cpp
8
i2p.cpp
|
@ -13,6 +13,14 @@
|
||||||
|
|
||||||
int main( int, char** )
|
int main( int, char** )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
setlocale(LC_CTYPE, "");
|
||||||
|
SetConsoleCP(1251);
|
||||||
|
SetConsoleOutputCP(1251);
|
||||||
|
setlocale(LC_ALL, "Russian");
|
||||||
|
#endif
|
||||||
|
|
||||||
i2p::util::HTTPServer httpServer (7070);
|
i2p::util::HTTPServer httpServer (7070);
|
||||||
|
|
||||||
httpServer.Start ();
|
httpServer.Start ();
|
||||||
|
|
Loading…
Reference in a new issue