diff options
author | Solly Ross <sross@redhat.com> | 2015-04-28 17:01:01 -0400 |
---|---|---|
committer | Solly Ross <sross@redhat.com> | 2015-05-12 12:53:42 -0400 |
commit | aaefff0bf0544fead4ecc92646ea4f9a1afc0e1e (patch) | |
tree | 63d5c4def400c3d8a3dead6ca7d7f64382eaec9b | |
parent | c6557d3d81552abb1c2c937255d116d782022c15 (diff) | |
download | websockify-aaefff0bf0544fead4ecc92646ea4f9a1afc0e1e.tar.gz |
Fix bug in ReadOnlyTokenFile
ReadOnlyTokenFile didn't initialize `self._targets` to `None`,
causing issues.
-rw-r--r-- | websockify/token_plugins.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/websockify/token_plugins.py b/websockify/token_plugins.py index fcb6080..b75ef00 100644 --- a/websockify/token_plugins.py +++ b/websockify/token_plugins.py @@ -12,6 +12,10 @@ class ReadOnlyTokenFile(BasePlugin): # source is a token file with lines like # token: host:port # or a directory of such files + def __init__(self, *args, **kwargs): + super(ReadOnlyTokenFile, self).__init__(*args, **kwargs) + self._targets = None + def _load_targets(self): if os.path.isdir(self.source): cfg_files = [os.path.join(self.source, f) for |