Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

在WEB添加了返回外网地址的功能,修复了Agent运行在阿里云时获取的是内网IP地址的错误 #54

Closed
wants to merge 4 commits into from

Conversation

J4r3tt
Copy link

@J4r3tt J4r3tt commented Jul 27, 2018

检测到Agent运行在在阿里云时,使用IPIP.NET来获取服务器的真实外网IP地址,使得命令推送功能正常进行,WEB也能正确看到上线的外网IP。

when run in Aliyun ,use other method to get real IP
when run in Aliyun ECS,use myip.ipip.net to get real ipadress.
@neargle neargle added the invalid This doesn't seem right label Jul 27, 2018
@neargle
Copy link
Member

neargle commented Jul 27, 2018

不赞同使用 IPIP.NET 这种外部的服务来获取外网 IP

@J4r3tt
Copy link
Author

J4r3tt commented Jul 27, 2018

那试试去WEB端返回一个了。

阿里云使用WEB端接口获取外网IP
阿里云使用WEB端接口获取外网IP FINISH
@v1xingyue
Copy link

个人感觉,这个玩意儿 都不适合部署到公网

@J4r3tt J4r3tt changed the title 修复了Agent运行在阿里云时获取的是内网IP地址的错误 在WEB添加了返回外网地址的功能,修复了Agent运行在阿里云时获取的是内网IP地址的错误 Jul 28, 2018
@J4r3tt
Copy link
Author

J4r3tt commented Jul 28, 2018

功能全部完成。

@J4r3tt J4r3tt closed this Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants