diff --git a/KeyGenerator.rc b/KeyGenerator.rc index 35d4b02..407c542 100644 Binary files a/KeyGenerator.rc and b/KeyGenerator.rc differ diff --git a/KeyGeneratorDlg.cpp b/KeyGeneratorDlg.cpp index ee8662c..977e6da 100644 --- a/KeyGeneratorDlg.cpp +++ b/KeyGeneratorDlg.cpp @@ -1,7 +1,7 @@ //---------------------------------------------------------------------------- // EgalTech 2013-2023 //---------------------------------------------------------------------------- -// File : KeyGeneratorDlg.cpp Data : 23.05.23 Versione : 2.5e1 +// File : KeyGeneratorDlg.cpp Data : 09.10.23 Versione : 2.5j1 // Contenuto : Implementazione della classe dialogo generatore chiavi. // // @@ -11,6 +11,7 @@ // 15.05.21 DS Aggiunto EgtBeamWall. // 02.01.23 DS Aggiunto Icarus. // 23.05.23 DS Aggiunto EgtEngine. +// 09.10.23 DS Aggiunta gestione chiave di rete con LockId contenente AddrPort dopo @. // //---------------------------------------------------------------------------- diff --git a/KeyMaker.cpp b/KeyMaker.cpp index e17902a..5e7df81 100644 --- a/KeyMaker.cpp +++ b/KeyMaker.cpp @@ -60,8 +60,10 @@ KeyMaker::SetLockId( const string& sLockId2) { // se identificativo di chiave, è direttamente in chiaro if ( sLockId2.find( KEY_LOCK_HW_START) != string::npos) { + string sTrueLockId, sAddrPort ; + SplitFirst( sLockId2, "@", sTrueLockId, sAddrPort) ; m_sLockId2 = sLockId2 ; - m_sLockId = sLockId2 ; + m_sLockId = sTrueLockId ; // calcolo chiave di scramble string sScramKey ; if ( ! ConvertLockIdToScramKey( m_sLockId, sScramKey))