mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 10:42:35 +00:00
choose version for handshake on Alice side
This commit is contained in:
1 parent
a4839bf2be
commit
86d07703b6
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -528,7 +528,8 @@ namespace transport
|
||||
memcpy (m_Establisher->m_IV, addr->i, 16);
|
||||
m_RemoteEndpoint = boost::asio::ip::tcp::endpoint (addr->host, addr->port);
|
||||
#if OPENSSL_PQ
|
||||
//m_Establisher->SetVersion (addr->v);
|
||||
if (m_Server.GetVersion () > 2) // we support post quantum in config
|
||||
m_Establisher->SetVersion (addr->v);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
||||
@@ -307,6 +307,7 @@ namespace transport
|
||||
|
||||
void SetLocalAddress (const boost::asio::ip::address& localAddress);
|
||||
void SetVersion (int version);
|
||||
int GetVersion () const { return m_Version; }
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in new issue
Block a user