修复ip
This commit is contained in:
parent
de965134fa
commit
fe4654e9e1
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ func (a *Ip) GetMsg() string {
|
|||
raw_msg := strings.TrimRight(a.RawMsg, "\n")
|
||||
fmt.Println("raw_msg:", raw_msg)
|
||||
parms := strings.Split(raw_msg, " ")
|
||||
url := "https://api.ip.sb/geoip/" + parms[1]
|
||||
url := "https://api.ip.sb/geoip/" + parms[0]
|
||||
|
||||
// fmt.Println("url: ", url)
|
||||
|
||||
|
|
Loading…
Reference in a new issue