infomaniak: Fix response parsing
This commit is contained in:
parent
d2f0e042f4
commit
8e24c92b1e
2 changed files with 5 additions and 2 deletions
|
@ -83,6 +83,8 @@ repository history](https://github.com/ddclient/ddclient/commits/master).
|
|||
hostname. [#673](https://github.com/ddclient/ddclient/issues/673)
|
||||
* `infomaniak`: Fixed frequent forced updates after 25 days (`max-interval`).
|
||||
[#691](https://github.com/ddclient/ddclient/issues/691)
|
||||
* `infomaniak`: Fixed incorrect parsing of server response.
|
||||
[#692](https://github.com/ddclient/ddclient/issues/692)
|
||||
* `regfishde`: Fixed IPv6 support.
|
||||
[#691](https://github.com/ddclient/ddclient/issues/691)
|
||||
|
||||
|
|
|
@ -8019,9 +8019,10 @@ sub nic_infomaniak_update {
|
|||
failed("could not update %s", $h);
|
||||
next;
|
||||
}
|
||||
my ($status) = split / /, $reply, 1;
|
||||
(my $body = $reply) =~ s/^.*?\n\n//s;
|
||||
my ($status) = split(/ /, $body, 2);
|
||||
my ($ok, $msg) =
|
||||
$statuses{$status} // (0, sprintf("Unknown reply from Infomaniak: %s", $reply));
|
||||
$statuses{$status} // (0, sprintf("Unknown reply from Infomaniak: %s", $body));
|
||||
if (!$ok) {
|
||||
failed($msg);
|
||||
next;
|
||||
|
|
Loading…
Reference in a new issue