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

获取IP地址错误 #101

Open
409413820 opened this issue Jun 13, 2022 · 2 comments
Open

获取IP地址错误 #101

409413820 opened this issue Jun 13, 2022 · 2 comments

Comments

@409413820
Copy link

ip_addr = new String(pkgInfo.body, ProtoCommon.FDFS_GROUP_NAME_MAX_LEN, ProtoCommon.FDFS_IPADDR_SIZE - 1).trim()
这段代码获取的IP地址特殊网络是错误的IP地址,甚至不是一个标准的IP地址

@happyfish100
Copy link
Owner

FDFS server要用最新版本,升级到 v6.08就没问题了。

@luckytao
Copy link

luckytao commented Dec 31, 2022

FDFS server要用最新版本,升级到 v6.08就没问题了。

FDFS server用最新版本v6.9.2, 指定tracker_server = 0.0.0.0:22122时,这个ip_addr返回的始终是127.0.0.1,tracker_server 必须指定固定ip地址,ip_add才能正确返回storage服务器地址。

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

3 participants