diff options
| author | Miguel Xavier Penha Neto <mxp@pinhaotec.com> | 2015-09-30 13:50:59 -0300 |
|---|---|---|
| committer | Miguel Xavier Penha Neto <mxp@pinhaotec.com> | 2015-09-30 16:04:19 -0300 |
| commit | e401701311bc28e242cd0ca72daa289541f34bf4 (patch) | |
| tree | 6907d13050e4e8dfdcce35c6e6521b586f6f9c1e | |
| parent | 714aa34e4ee009ab3702a8546398e722d7cf48f9 (diff) | |
| download | websockify-e401701311bc28e242cd0ca72daa289541f34bf4.tar.gz | |
Added support for IPv6 addresses in tokens
Fixes #196
| -rw-r--r-- | websockify/token_plugins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/websockify/token_plugins.py b/websockify/token_plugins.py index 3a1195f..92494eb 100644 --- a/websockify/token_plugins.py +++ b/websockify/token_plugins.py @@ -28,7 +28,7 @@ class ReadOnlyTokenFile(BasePlugin): for line in [l.strip() for l in open(f).readlines()]: if line and not line.startswith('#'): tok, target = line.split(': ') - self._targets[tok] = target.strip().split(':') + self._targets[tok] = target.strip().rsplit(':', 1) def lookup(self, token): if self._targets is None: |
