代码拉取完成,页面将自动刷新
-- program by liyanxi(李焱曦)/oshine
-- power by WOO
-- 注意,注释有的英文有的中文,是在不同是时间写代码导致的,隔一段时间写代码就会忘了使用中文注释,见解下
_DIR = _DIR == '.' and './' or _DIR
print(_DIR,package.path)
local conf = require(_DIR .. '/conf')
_out('===start with conf:===', conf, '\n')
local addr = conf['http/s_sockets4/5_addr']
print('sockets(4/5) and http/s proxy start on:'.. addr..' yes ,all proxy on one port,juuuust capricious')
-- 开启 tcp sockets proxy监听服务
woo.sockets:new():listen('tcp', addr, function(handler)
print('client in...')
-- 启动一个线程来处理,启动线程需要绝对路径,把sockets handler,目录位置传入线程中去
_run(_DIR .. '/client/sockets_handler.woo', handler, _DIR, conf)
end, function(err)
print(err)
end)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。