From 1090a979f934da4d5b8b496dd232976f8b0b959c Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Fri, 22 Jul 2022 19:06:12 +0800 Subject: [PATCH] ipInfoIP = address ipInfoDomain = "" --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 243b99c..9b868d3 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,8 @@ func IPHandle(w http.ResponseWriter, req *http.Request) { //没传address值 则拿请求ip来查询 addressReq, _ := util.GetIP(req) address = addressReq + ipInfoIP = address + ipInfoDomain = "" case util.MatchIP(address): //传了address值 是ip 则直接查询 ipInfoIP = address