diff --git a/gestion/numeros_disponibles.py b/gestion/numeros_disponibles.py index 40c04662..0e912e22 100644 --- a/gestion/numeros_disponibles.py +++ b/gestion/numeros_disponibles.py @@ -54,11 +54,11 @@ def update_ip(plage, occupees): for i in ip: n.append(int(i)) while 1: - if n[3] < 255: + if n[3] < 254: n[3] += 1 else: n[2] += 1 - n[3] = 0 + n[3] = 1 if n[2] == 255: break ip = "%d.%d.%d.%d" % tuple(n) if not AddrInNet(ip, ne):