]> gitweb.pimeys.fr Git - NK2015_Client_Python_Alpha.git/commitdiff
fixed fonction users
authorVincent Le Gallic <legallic@crans.org>
Sat, 17 Mar 2012 18:34:37 +0000 (19:34 +0100)
committerVincent Le Gallic <legallic@crans.org>
Sat, 17 Mar 2012 18:34:37 +0000 (19:34 +0100)
client.py

index de8c71cfc4ceaf487874736f5629c30f7359d6f3..fb4764b9dde19dd6188b891adec4beaaddc4bbca 100755 (executable)
--- a/client.py
+++ b/client.py
@@ -93,9 +93,10 @@ def challenge(a):
         print "Imposteur !"
     
 if __name__=="__main__":
+    where=raw_input("quel serveur ?")
     #port=int(raw_input("port ? "))
     a=socket.socket()
-    a=connect(a,"cerebro")
+    a=connect(a,where)
     a.settimeout(2)
     #checkidentity(a)
     print hello(a,"Python Client alpha")