diff options
Diffstat (limited to 'termcast_client/__init__.py')
-rw-r--r-- | termcast_client/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/termcast_client/__init__.py b/termcast_client/__init__.py index c8986b0..0bab15b 100644 --- a/termcast_client/__init__.py +++ b/termcast_client/__init__.py @@ -23,7 +23,7 @@ class Client(object): self.sock = socket.socket() self.sock.connect((self.host, self.port)) if self.tls: - self._setup_tls() + self._starttls() self.sock.send(self._build_connection_string()) self.winch_set = False pity.spawn( @@ -32,7 +32,7 @@ class Client(object): handle_window_size=True ) - def _setup_tls(self): + def _starttls(self): self.sock.send(b'starttls\n') context = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH) if self.fingerprint is not None: |