Skip to content

Commit

Permalink
update: 分离ipv4和ipv6的获取方式
Browse files Browse the repository at this point in the history
  • Loading branch information
scjtqs committed Jan 9, 2024
1 parent d501316 commit 169b224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (c *Client) checkType() {
// defaultRun 默认方式运行
func (c *Client) defaultRun() {
url := fmt.Sprintf("%s/ddns/client/id/%d/token/%s", config.BASE_URL, c.Config.UserID, c.Config.Token)
rsp, err := Get(url)
rsp, err := GetIPV4(url)
if err != nil {
panic(err)
}
Expand All @@ -78,7 +78,7 @@ func (c *Client) ipv4Run() {
panic(err)
}
url := fmt.Sprintf("%s/ddns/client/ipv4?id=%d&token=%s&sub=%s&domain=%s&ipv4=%s", config.BASE_URL, c.Config.UserID, c.Config.Token, c.Config.Sub, c.Config.Domain, ipv4)
rsp, err := Get(url)
rsp, err := GetIPV4(url)
log.Infof("ipv4 rsp:%s", rsp)
}

Expand Down

0 comments on commit 169b224

Please sign in to comment.