EgtExecutor 2.5j1 :

- riallineamento
- sistemazioni per chiave di rete esposta su Internet.
This commit is contained in:
Dario Sassi
2023-10-09 13:07:33 +02:00
parent 206f3bdf61
commit 5ec4ed439f
5 changed files with 30 additions and 20 deletions
+8 -5
View File
@@ -278,9 +278,12 @@ ExeSetLockId( const string& sLockId)
bOk = ( s_nKeyType != KEY_LOCK_TYPE_HW) ;
break ;
case KEY_LOCK_TYPE_HW :
ExeSetNetHwKey( bNetKey, nUserId) ;
bOk = true ;
break ;
{ string sAddrPort ;
GetLockIdStringNetData( sLockId, sAddrPort) ;
ExeSetNetHwKey( bNetKey, nUserId, sAddrPort) ;
bOk = true ;
break ;
}
}
if ( bOk)
s_sLockId = sLockId ;
@@ -300,11 +303,11 @@ ExeGetLockId( void)
//-----------------------------------------------------------------------------
bool
ExeSetNetHwKey( bool bNetHwKey, int nUserId)
ExeSetNetHwKey( bool bNetHwKey, int nUserId, const string& sAddrPort)
{
s_bNetHwKey = bNetHwKey ;
SetEGnNetHwKey( s_bNetHwKey) ;
return SetNetHwKey( s_bNetHwKey, nUserId) ;
return SetNetHwKey( s_bNetHwKey, nUserId, sAddrPort) ;
}
//-----------------------------------------------------------------------------