From d8a2951969ea9d6e2ddcb35ce5d3e2b2e869df0d Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 9 Feb 2013 19:08:16 +0100 Subject: [PATCH] serveur,port -> config ; serveur note : localhost -> bde2 --- basile.py | 2 +- config.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/basile.py b/basile.py index bccea28..a87ed44 100755 --- a/basile.py +++ b/basile.py @@ -71,7 +71,7 @@ def connect_NK(): sock=socket.socket() try: # On établit la connexion sur port 4242 - sock.connect(("127.0.0.1",4242)) + sock.connect((config.NKserver, config.NKport)) # On passe en SSL sock=ssl.wrap_socket(sock,ca_certs='../keys/ca_.crt') # On fait un hello diff --git a/config.py b/config.py index 319f9bf..2fefc1c 100644 --- a/config.py +++ b/config.py @@ -15,6 +15,8 @@ quiet_channels=[] # la config note-related note_pseudo="Basile" note_password="NK2015BasileB0tr4nd0omp4assword]6_+{#]78{" +nk_server = "bde2.crans.org" +nk_port = "4242" # les logs logfile_template="basile.%s.log" -- 2.39.2