summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--websockify/token_plugins.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/websockify/token_plugins.py b/websockify/token_plugins.py
index 84bda93..03800e7 100644
--- a/websockify/token_plugins.py
+++ b/websockify/token_plugins.py
@@ -65,10 +65,12 @@ class BaseTokenAPI(BasePlugin):
# should go
# we import things on demand so that other plugins
- # in this file can be used w/o unecessary dependencies
+ # in this file can be used w/o unnecessary dependencies
def process_result(self, resp):
- return resp.text.split(':')
+ host, port = resp.text.split(':')
+ port = port.encode('ascii','ignore')
+ return [ host, port ]
def lookup(self, token):
import requests