We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
del
The text was updated successfully, but these errors were encountered:
@ffspace810 这个LUA模块不支持tcp proxy module。
这个lua模块是使用http cookie来验证身份的。当用户第一次登录时,使用http basic auth的方式来验证身份,验证完成后,用lua生成一个token,返回给用户,用户后续访问时在cookie中带上这个token,lua利用这个token就可以识别身份。所以,整个流程都是基于HTTP的语义进行的,TCP是无法使用的。
此外,这个项目更多的只是一个玩具项目,并不能在生产环境使用。上述的token,一般来说都实现为session id,session id一般是随机生成,存储在数据库中,并跟实际的用户相关联,当用户携带session id来访问时,服务器查询该id对应的帐号,就知道访客是谁了。使用session更安全,因为可以“登出”(只需要将这个session id从数据库删除即可)。
Sorry, something went wrong.
No branches or pull requests
del
The text was updated successfully, but these errors were encountered: