Browse Source

V 0.1

master
root 3 years ago
parent
commit
dafa907f00
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      server.py

+ 3
- 3
server.py View File

@@ -47,8 +47,8 @@ class ClientThread(threading.Thread):
#s = "\t"
line = s.join(item)+"\n" # on reforme la ligne
if "home" in item: # si un des items est le mot home
print item[3]
print self.ip
# print item[3]
# print self.ip
if item[3] != self.ip : # Si IP differente
change = 1
item[3] = self.ip+"\n"
@@ -64,7 +64,7 @@ class ClientThread(threading.Thread):
call(["cp", "/etc/bind/zones/db.debugo.fr.extra", "/etc/bind/zones/db.debugo.fr.extra.back"])
call(["rm", "/etc/bind/zones/db.debugo.fr.extra"])
call(["mv", "/etc/bind/zones/new.txt", "/etc/bind/zones/db.debugo.fr.extra"])
call (["rndc reload"])
call (["rndc", "reload"])
fichier.close
else :
error = 1

Loading…
Cancel
Save