mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-03-31 06:24:00 -04:00
fix(godaddy): link to comment when 403 is encountered
This commit is contained in:
@@ -160,5 +160,15 @@ func (p *Provider) Update(ctx context.Context, client *http.Client, ip netip.Add
|
||||
if jsonErr != nil || parsedJSON.Message == "" {
|
||||
return netip.Addr{}, fmt.Errorf("%w: %s", err, utils.ToSingleLine(string(b)))
|
||||
}
|
||||
return netip.Addr{}, fmt.Errorf("%w: %s", err, parsedJSON.Message)
|
||||
|
||||
err = fmt.Errorf("%w: %s", err, parsedJSON.Message)
|
||||
|
||||
if response.StatusCode == http.StatusForbidden &&
|
||||
parsedJSON.Message == "Authenticated user is not allowed access" {
|
||||
err = fmt.Errorf("%w - "+
|
||||
"See https://github.com/qdm12/ddns-updater/issues/707#issuecomment-2089632215",
|
||||
err)
|
||||
}
|
||||
|
||||
return netip.Addr{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user