Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.

Commit af290fc

Browse files
authored
Merge pull request #526 from V-E-O/patch-3
fix dnspod error: Communication with checkip server %s failed
2 parents 2a99888 + 62ac3a4 commit af290fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/dnspod.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static ddns_system_t plugin = {
4646
.checkip_ssl = DYNDNS_MY_IP_SSL,
4747

4848
.server_name = "dnsapi.cn",
49-
.server_url = ""
49+
.server_url = "/"
5050
};
5151

5252
static ddns_system_t plugin_v6 = {
@@ -61,7 +61,7 @@ static ddns_system_t plugin_v6 = {
6161
.checkip_ssl = DDNS_CHECKIP_SSL_SUPPORTED,
6262

6363
.server_name = "dnsapi.cn",
64-
.server_url = ""
64+
.server_url = "/"
6565
};
6666

6767
static int fetch_record_id(ddns_t *ctx, ddns_info_t *info, ddns_alias_t *alias, char *domain, char *prefix)

src/ddns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static int parse_my_address(char *buffer, char *address, size_t len)
334334

335335
static int get_address_remote(ddns_t *ctx, ddns_info_t *info, char *address, size_t len)
336336
{
337-
if (!info->server_url[0])
337+
if (!info->checkip_name.name[0])
338338
return 1;
339339

340340
DO(server_transaction(ctx, info));

0 commit comments

Comments
 (0)