Added support for IPv6 addresses in tokens

Fixes #196
This commit is contained in:
Miguel Xavier Penha Neto 2015-09-30 13:50:59 -03:00
parent 714aa34e4e
commit e401701311
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: