Merge pull request #197 from miguelxpn/issue196
Add support for IPv6 addresses in tokens
This commit is contained in:
commit
62c3a59192
|
|
@ -28,7 +28,7 @@ class ReadOnlyTokenFile(BasePlugin):
|
||||||
for line in [l.strip() for l in open(f).readlines()]:
|
for line in [l.strip() for l in open(f).readlines()]:
|
||||||
if line and not line.startswith('#'):
|
if line and not line.startswith('#'):
|
||||||
tok, target = line.split(': ')
|
tok, target = line.split(': ')
|
||||||
self._targets[tok] = target.strip().split(':')
|
self._targets[tok] = target.strip().rsplit(':', 1)
|
||||||
|
|
||||||
def lookup(self, token):
|
def lookup(self, token):
|
||||||
if self._targets is None:
|
if self._targets is None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue