Si il n'y a pas de suffixe, on le rajoute pour eviter les prb
This commit is contained in:
parent
f943cf52a6
commit
28cfce0916
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ class Dialog(certificat.Dialog, blacklist.Dialog):
|
|||
raise ValueError("La machine n'est ni une machine fixe, ni une machine wifi mais %s ?!?" % objectClass)
|
||||
|
||||
if not host.endswith(hostend) and not '.' in host:
|
||||
host = "%s.wifi.crans.org" % host
|
||||
host = host + hostend
|
||||
elif host.endswith(hostend) and '.' in host[:-len(hostend)]:
|
||||
raise ValueError("Nom d'hôte invalide, devrait finir par %s et être sans point dans la première partie" % hostend)
|
||||
elif not host.endswith(hostend) and '.' in host:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue