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

获取mac #92

Open
Specialleiliei opened this issue Feb 28, 2023 · 1 comment
Open

获取mac #92

Specialleiliei opened this issue Feb 28, 2023 · 1 comment

Comments

@Specialleiliei
Copy link
Contributor

cn.xeblog.plugin.action.handler.command.LoginCommandHandler#getMac

建议把 if 换成while
if (networkInterfaces.hasMoreElements()) {...} => while(networkInterfaces.hasMoreElements()) {...}

多个网卡第一个为本地的时候,用if获取不到
image

换成while 获取到第一个mac就返回了,刚刚好
image

@anlingyi
Copy link
Owner

非常感谢👍

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