ip

command module
v0.0.0-...-c7b6954 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 6 Imported by: 0

README

Integrating and improving with https://github.com/rdegges/ipify-api

Building

git clone https://github.com/TelenLiu/ip.git 
go mod tidy
go build

Docker Build

docker buildx build --platform linux/amd64,linux/arm64 . -t telenliu/ip:23.4.19 --push

Docker Run

docker run -d -p 3000:3000 --restart=always telenliu/ip:23.4.19

API Get

Integrating https://www.ipify.org/,replae [api64.ipify.org] for your host

https://api64.ipify.org	  98.207.254.136 or 2a00:1450:400f:80d::200e
https://api64.ipify.org?format=json	 {"ip":"98.207.254.136"} or {"ip":"2a00:1450:400f:80d::200e"}
https://api64.ipify.org?format=jsonp	 	callback({"ip":"98.207.254.136"}); or callback({"ip":"2a00:1450:400f:80d::200e"});
https://api64.ipify.org?format=jsonp&callback=getip	 getip({"ip":"98.207.254.136"}); or getip({"ip":"2a00:1450:400f:80d::200e"});

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL