npist / v2rayms Goto Github PK
View Code? Open in Web Editor NEWv2ray whmcs 多用户后端
License: MIT License
v2ray whmcs 多用户后端
License: MIT License
看了后端源码,发现定义config文件是etc/v2ray/config.json,所以说连接时配置服务器是按照etc/v2ray里的配置而不是后端同目录下的config配置是不是,望解答
在数据表增加email字段不太明智,建议和我一样直接使用id然后组合特点的邮件后缀来实现用户区分。(就好像[email protected]这样
还有就是建议把插件单独做成项目。这样更利于版本更新和维护。目前你我的分支的sql部分只有email字段的区别。所以其实你可以参考一下上面的建议把更多的时间放在研究后端编写上
然后就是没记错的话目前python似乎有现成的grpc对接v2ray的项目,你可以参考一下来做流量调取和上传
用screen后台运行后,有时候服务挂了,进去看server一直输出(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
(0, '')
运行python3 v2rayMS_Server.py
报数据库连接错误,测试数据库是可以正常连接的,远程连接也没问题
[Queue]:Wed Oct 17 17:38:30 2018:Mysql Connection Error
[Queue]:Wed Oct 17 17:38:40 2018:Mysql Connection Error
[Queue]:Wed Oct 17 17:38:50 2018:Mysql Connection Error
^CException ignored in: <module 'threading' from '/usr/lib64/python3.4/threading.py'>
Traceback (most recent call last):
File "/usr/lib64/python3.4/threading.py", line 1285, in _shutdown
t.join()
File "/usr/lib64/python3.4/threading.py", line 1051, in join
self._wait_for_tstate_lock()
File "/usr/lib64/python3.4/threading.py", line 1067, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt
很大部分插件源码和V2RaySocks相似度极高
演示站涉及抄袭
请做出解释
root@ip-172-31-45-239:/www/wwwroot/v2rayMS-master/client# python3 v2rayMS_Client.py
Linux
Sat Sep 15 17:42:47 2018
data receive done .... 0
Update user list
Traceback (most recent call last):
File "v2rayMS_Client.py", line 310, in
main()
File "v2rayMS_Client.py", line 293, in main
accept_cfg()
File "v2rayMS_Client.py", line 260, in accept_cfg
user_config_list = [eval(i) for i in user_config_temp.split("#")]
File "v2rayMS_Client.py", line 260, in
user_config_list = [eval(i) for i in user_config_temp.split("#")]
File "", line 0
^
SyntaxError: unexpected EOF while parsing
老板,后端提示这个有问题吗?
Sun Oct 21 20:58:41 2018
data receive done .... 0
Update user list
unexpected EOF while parsing (, line 0)
Update Error!
dalao有搭建教程么,我试了好几次都失败了。谢谢大佬
client一直是输出用户列表更新成功的。。。可以检测到数据库里用户列表变动,但v2ray的配置文件里面就一直是空的
大佬,您的这个后端可以对接sspanel魔改吗?谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.