Merge pull request #197 from miguelxpn/issue196

Add support for IPv6 addresses in tokens
This commit is contained in:
Solly 2015-09-30 16:53:56 -04:00
commit 62c3a59192
1 changed files with 1 additions and 1 deletions

View File

@ -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: