我试图让websockify 0.6.0在 Windows 上运行但没有任何运气,
我已经尝试过python websockify.py 1501 10.0.0.141:1501
,但效果不佳,出现错误,如下所示:
Traceback (most recent call last):
File "websockify.py", line 1, in <module>
run
NameError: name 'run' is not defined
我也尝试将 Websockify 编译为 Windows Executable,但这也不起作用我使用以下命令run.exe 1501 10.0.0.141:1501
,一开始看起来很有希望,将以下内容输出到控制台:
WARNING: no 'resource' module, daemonizing is disabled
WebSocket server settings:
- Listen on :1501
- Flash security policy server
- No SSL/TLS support (no cert file)
- proxying from :1501 to 10.0.0.141:1501
但是在尝试使用浏览器中的以下内容进行连接之后ws://localhost:1501
**它输出以下错误
Traceback (most recent call last):
File "run", line 5, in <module>
File "websockify\websocketproxy.pyc", line 419, in websockify_init
File "websockify\websocket.pyc", line 1018, in start_server
UnboundLocalError: local variable 'exc' referenced before assignment
关于如何在 Windows 上使用 websockify / 或如何将编译后的 websockify 用作 Windows 可执行文件的任何想法?