1 Star 0 Fork 44

背归鸿 / 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;
};
C++
1
https://gitee.com/gaoke0820/socks_server.git
git@gitee.com:gaoke0820/socks_server.git
gaoke0820
socks_server
socks_server
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891