改造 支持域名

master
sre 3 years ago
parent 3acb551f94
commit 19996cc2df

@ -1,5 +1,5 @@
# ip地址归属地查询 # ip地址归属地查询
http://127.0.0.1:8080?address=sre.ink http://127.0.0.1:8080?address=git.sre.ink
## bench ## bench
```bash ```bash
goos: windows goos: windows

@ -1,5 +1,3 @@
module IPRegion module IPRegion
go 1.18 go 1.18
require github.com/lionsoul2014/ip2region v2.2.0-release+incompatible

@ -1,10 +1,10 @@
package main package main
type IpInfo struct { //type IpInfo struct {
CityId int64 // CityId int64
Country string // Country string
Region string // Region string
Province string // Province string
City string // City string
ISP string // ISP string
} //}

Loading…
Cancel
Save