Show More
@@ -505,10 +505,17 b' class ConnectionFileMixin(Configurable):' | |||||
505 | if getattr(self, name) == 0 and name in cfg: |
|
505 | if getattr(self, name) == 0 and name in cfg: | |
506 | # not overridden by config or cl_args |
|
506 | # not overridden by config or cl_args | |
507 | setattr(self, name, cfg[name]) |
|
507 | setattr(self, name, cfg[name]) | |
|
508 | ||||
|
509 | if self.session: | |||
|
510 | session = self.session | |||
|
511 | else: | |||
|
512 | session = self.config.Session | |||
|
513 | ||||
508 | if 'key' in cfg: |
|
514 | if 'key' in cfg: | |
509 |
se |
|
515 | session.key = str_to_bytes(cfg['key']) | |
510 | if 'signature_scheme' in cfg: |
|
516 | if 'signature_scheme' in cfg: | |
511 |
se |
|
517 | session.signature_scheme = cfg['signature_scheme'] | |
|
518 | ||||
512 | #-------------------------------------------------------------------------- |
|
519 | #-------------------------------------------------------------------------- | |
513 | # Creating connected sockets |
|
520 | # Creating connected sockets | |
514 | #-------------------------------------------------------------------------- |
|
521 | #-------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now