1 Star 0 Fork 47

zhao_jd/socks_server

forked from Jack.arain/proxy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
do_auth.js 578 Bytes
一键复制 编辑 原始数据 按行查看 历史
jk 提交于 2017-09-18 14:43 . update js for auth.
// javascript auth.
// for socks4 server auth.
var do_auth4 = function(client, name)
{
var auth = false;
if (name == "aaa")
auth = true;
print("do_auth4, client: ", client, ", name='", name, "'",
(auth ? ", auth passed." : ", auth fail!"));
return auth;
};
// for socks5 server auth.
var do_auth = function(client, name, passwd)
{
var auth = false;
if (name == "aaa" && passwd == "ccc")
auth = true;
print("do_auth, client: ", client, ", name='", name, "'",
(auth ? ", auth passed." : ", auth fail!"));
return auth;
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhao_jd/socks_server.git
git@gitee.com:zhao_jd/socks_server.git
zhao_jd
socks_server
socks_server
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385