Remove ServerCapabilities stuff
This commit is contained in:
parent
8d1aada18c
commit
ed99ce9981
1 changed files with 2 additions and 8 deletions
|
@ -10,16 +10,10 @@ from nntp.tiny.db import Database
|
||||||
from nntp.tiny.host import Host
|
from nntp.tiny.host import Host
|
||||||
from nntp.tiny.session import Session
|
from nntp.tiny.session import Session
|
||||||
|
|
||||||
class ServerCapability(enum.Flag):
|
|
||||||
NONE = 0
|
|
||||||
AUTH = enum.auto()
|
|
||||||
POST = enum.auto()
|
|
||||||
|
|
||||||
class Server():
|
class Server():
|
||||||
def __init__(self, config: Config):
|
def __init__(self, config: Config):
|
||||||
self.config = config
|
self.config = config
|
||||||
self.capabilities = ServerCapability.NONE
|
self.sslctx = None
|
||||||
self.sslctx = None
|
|
||||||
|
|
||||||
if config.section('listen').get('tls', 'no') == 'yes':
|
if config.section('listen').get('tls', 'no') == 'yes':
|
||||||
self.sslctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
self.sslctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||||
|
|
Loading…
Add table
Reference in a new issue