diff --git a/autologout.py b/autologout.py index 6abbd19d..c15ea99d 100755 --- a/autologout.py +++ b/autologout.py @@ -9,7 +9,8 @@ for w in commands.getoutput("w -h").split('\n') : w = sre.split(' *', w) # on verifie que c'est une connection du bde - if w[2] != 'bde.crans.org' : + hosts = ['bde.crans.org','cableur.crans.org','cableuse.crans.org'] + if w[2] not in [ h[0:16] for h in hosts ] : continue # on verifie qu'on a depase le timeout