Too new python
This commit is contained in:
parent
58df48cd91
commit
7cc0ee36fa
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class ConfigWebSocketHandler(tornado.websocket.WebSocketHandler):
|
||||||
parsed_origin = urlparse(origin)
|
parsed_origin = urlparse(origin)
|
||||||
# parsed_origin.netloc.lower() gives localhost:3333
|
# parsed_origin.netloc.lower() gives localhost:3333
|
||||||
valid = any([parsed_origin.hostname.endswith(origin) for origin in self.CORS_ORIGINS])
|
valid = any([parsed_origin.hostname.endswith(origin) for origin in self.CORS_ORIGINS])
|
||||||
logger.info(f"Connection from {origin} is valid? {valid=}")
|
logger.info(f"Connection from {origin} is valid? valid: {valid}")
|
||||||
return valid
|
return valid
|
||||||
|
|
||||||
# the client connected
|
# the client connected
|
||||||
|
|
Loading…
Reference in a new issue