remove the obsolete configuration entries

This commit is contained in:
Sven Czarnian
2021-09-02 19:43:18 +02:00
parent b10fae513e
commit f6643d899f

View File

@@ -8,8 +8,6 @@ class Server():
self.Address = None self.Address = None
self.PortReceiver = None self.PortReceiver = None
self.PortNotification = None self.PortNotification = None
self.ServerKeyPath = None
self.ClientKeyPath = None
# search the required sections # search the required sections
for key in config: for key in config:
@@ -19,10 +17,6 @@ class Server():
self.PortReceiver = int(config['portreceiver']) self.PortReceiver = int(config['portreceiver'])
elif 'portnotification' == key: elif 'portnotification' == key:
self.PortNotification = int(config['portnotification']) self.PortNotification = int(config['portnotification'])
elif 'serverkeypath' == key:
self.ServerKeyPath = config['serverkeypath']
elif 'clientkeypath' == key:
self.ClientKeyPath = config['clientkeypath']
if self.Address is None: if self.Address is None:
sys.stderr.write('No server-address configuration found!') sys.stderr.write('No server-address configuration found!')
@@ -33,9 +27,3 @@ class Server():
if self.PortNotification is None: if self.PortNotification is None:
sys.stderr.write('No server-port-notification configuration found!') sys.stderr.write('No server-port-notification configuration found!')
sys.exit(-1) sys.exit(-1)
if self.ServerKeyPath is None:
sys.stderr.write('No server-key-path configuration found!')
sys.exit(-1)
if self.ClientKeyPath is None:
sys.stderr.write('No client-key-path configuration found!')
sys.exit(-1)