mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-25 23:21:41 +03:00
Merge remote-tracking branch 'origin/v3.0'
This commit is contained in:
commit
5d52061041
@ -137,10 +137,10 @@ class IPMachinesService(IPServiceBase):
|
||||
d = self.storage.readData('ips')
|
||||
old_ips = pickle.loads(d) if d and isinstance(d, bytes) else []
|
||||
# dissapeared ones
|
||||
dissapeared = set(old_ips) - set(self._ips)
|
||||
dissapeared = set(i.split('~')[0] for i in old_ips) - set(i.split('~')[0] for i in self._ips)
|
||||
with transaction.atomic():
|
||||
for removable in dissapeared:
|
||||
self.storage.remove(removable.split('~')[0])
|
||||
self.storage.remove(removable)
|
||||
|
||||
self._token = self.token.value.strip()
|
||||
self._port = self.port.value
|
||||
|
@ -94,7 +94,7 @@ def udsJs(request: 'HttpRequest') -> str:
|
||||
# logger.debug('Authenticators PRE: %s', authenticators)
|
||||
|
||||
if tag and authenticators: # Refilter authenticators, visible and with this tag if required
|
||||
authenticators = [x for x in authenticators if x.small_name == tag]
|
||||
authenticators = [x for x in authenticators if x.small_name == tag or (tag == 'disabled' and x.getType().isCustom() is False)]
|
||||
|
||||
if not authenticators:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user