一个展示当前访问用户的 UA 和公网 IP 的小网页 https://myua.is
技术比较简单 net/http + autocert + GeoIP 支持常用命令行工具的方式获取公网 IP:
$ curl -L myua.is $ http -b myua.is $ wget -qO- myua.is $ fetch -qo- https://myua.is $ bat -print=b myua.is
![]() | 1 loading 2018-05-26 09:27:15 +08:00 不考虑 github 一下? |
2 hizzx 2018-05-26 09:42:52 +08:00 是呀,谢谢分享 |
![]() | 4 misaka19000 2018-05-26 10:29:42 +08:00 http://107.174.218.197/ |
6 azh7138m 2018-05-26 10:37:46 +08:00 via Android emmmm,说出来你可能不信,Nginx 自己就可以做到 |
![]() | 8 crll 2018-05-26 11:48:15 +08:00 @misaka19000 大佬,不考虑 github 一下吗? |
![]() | 9 misaka19000 2018-05-26 12:06:37 +08:00 ![]() @crll #8 <script src="https://gist.github.com/RitterHou/b5a72898585358e3385d78ffaa27f530.js"></script> |
![]() | 10 E1n 2018-05-26 12:11:35 +08:00 via Android go 效率高吗 |
![]() | 12 crll 2018-05-26 13:35:57 +08:00 @misaka19000 谢谢~~ |
14 azh7138m 2018-05-27 13:20:44 +08:00 |