• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Mysqto
V2EX  ›  程序员

用 Golang 写了个玩具,欢迎来踩

  •  
  •   Mysqto ·
    mysqto · May 26, 2018 · 5510 views
    This topic created in 3097 days ago, the information mentioned may be changed or developed.

    一个展示当前访问用户的 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
    
    15 replies  •  2018-05-28 07:37:25 +08:00
    loading
    loading
    May 26, 2018
    1
    不考虑 github 一下?
    hizzx
    hizzx
    May 26, 2018
    2
    是呀,谢谢分享
    Mysqto
    Mysqto
    OP
    May 26, 2018
    3
    @loading @hizzx 整理一下就发出来 😂
    misaka19000
    misaka19000
    May 26, 2018
    4
    http://107.174.218.197/
    mofe
    mofe
    May 26, 2018 via iPhone
    5
    😂😂,每个月都有人写这样的服务 比如我的 iiip.co
    azh7138m
    azh7138m
    May 26, 2018 via Android
    6
    emmmm,说出来你可能不信,Nginx 自己就可以做到
    wenzhoou
    wenzhoou
    May 26, 2018 via Android
    7
    @azh7138m 教一教啊。大师。
    crll
    crll
    May 26, 2018
    8
    @misaka19000 大佬,不考虑 github 一下吗?
    E1n
    E1n
    May 26, 2018 via Android
    10
    go 效率高吗
    Showfom
    Showfom
    PRO
    May 26, 2018❤️1
    11
    curl -4 ip.sb
    curl -6 ip.sb
    crll
    crll
    May 26, 2018
    12
    @misaka19000 谢谢~~
    likaci
    likaci
    May 26, 2018
    13
    一直用
    curl ip.cn
    wenzhoou
    wenzhoou
    May 28, 2018 via Android
    15
    @azh7138m 谢指教。学习了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2316 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:21 · PVG 08:21 · LAX 16:21 · JFK 19:21
    ♥ Do have faith in what you're doing.