X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-vnc-server.git/blobdiff_plain/9b53a3b4c06b33ff8e0055ffdfb7059d3f79ba54..48c35eb9ddfae29d181757b73713d508127faea8:/python/vnc/extauth.py diff --git a/python/vnc/extauth.py b/python/vnc/extauth.py index b7351a3..a01a858 100644 --- a/python/vnc/extauth.py +++ b/python/vnc/extauth.py @@ -20,10 +20,7 @@ import socket import time def getTokenKey(): - token_key = file('/etc/invirt/secrets/vnc-key').read().strip() - while True: - yield token_key -getTokenKey = getTokenKey().next + return file('/etc/invirt/vnc/token-key').read().strip() def getPort(name, auth_data): import get_port