Skip to content
New issue

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

[feature] 是否支持多开 ? #20

Open
Oniokey opened this issue Oct 6, 2023 · 1 comment
Open

[feature] 是否支持多开 ? #20

Oniokey opened this issue Oct 6, 2023 · 1 comment

Comments

@Oniokey
Copy link

Oniokey commented Oct 6, 2023

运行第一个 mentohust 程序成功后,使用同样的命令(更换 -u -p -n)之后执行提示 !! MentoHUST已经运行(PID=xxxx)!
但未在 /var/run 目录下发现 mentohust.pid 文件,导致无法绕过程序多开限制
是否有可能支持多开呢

拥有 2 个账号,共计可以登录 4 台设备
想要在路由器上的 4 个虚拟 wan 口上认证达到网速叠加的效果

@KyleRicardo
Copy link
Owner

static const char *LOCK_FILE = "/tmp/mentohust.pid"; /* 锁文件 */

锁文件在/tmp目录下。

else if (fl.l_type != F_UNLCK) {
printf("!! MentoHUST已经运行(PID=%d)!\n", fl.l_pid);
exit(EXIT_FAILURE);

这个是检测多开的逻辑,你可以fork一份把多开限制去掉然后自用。很简单的逻辑,懂点C就可以搞定。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants