_datadir is now defined in client.py
This commit is contained in:
parent
b8cc380d87
commit
8122133244
1 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,9 @@ import threading
|
||||||
import os
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
import ssl
|
import ssl
|
||||||
|
import ostools
|
||||||
|
|
||||||
|
_datadir = ostools.getDataDir()
|
||||||
|
|
||||||
from oyoyo.parse import *
|
from oyoyo.parse import *
|
||||||
from oyoyo import helpers
|
from oyoyo import helpers
|
||||||
|
@ -103,7 +106,7 @@ class IRCClient:
|
||||||
self.bare_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
self.bare_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
self.socket = self.context.wrap_socket(self.bare_socket)
|
self.socket = self.context.wrap_socket(self.bare_socket)
|
||||||
except:
|
except:
|
||||||
#print("TLS except.")
|
logging.exception('')
|
||||||
self.context = ssl.create_default_context()
|
self.context = ssl.create_default_context()
|
||||||
self.context.check_hostname = False
|
self.context.check_hostname = False
|
||||||
self.context.verify_mode = ssl.CERT_NONE
|
self.context.verify_mode = ssl.CERT_NONE
|
||||||
|
|
Loading…
Reference in a new issue