about summary refs log tree commit diff
path: root/src/nm-cloud-setup/nmcs-provider-aliyun.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-06-28 15:05:47 +0200
committerMichael Biebl <biebl@debian.org>2023-06-28 15:05:47 +0200
commitb63a7cd4dbfe56f832140a2d98bdb67c0a54627f (patch)
tree221887ec10314344b54ebc24f8c84fc0e0aaca1a /src/nm-cloud-setup/nmcs-provider-aliyun.c
parentc5f255c46e327e5b910d5da01d7e00385a8711bc (diff)
parent14b0f3a9dc9ea90d60a3b057350fd4d637dc021a (diff)
Update upstream source from tag 'upstream/1.42.8'
Update to upstream version '1.42.8'
with Debian dir 166b7f033d12a686e3d99ca4b3ded3c6bcbd0f66
Diffstat (limited to 'src/nm-cloud-setup/nmcs-provider-aliyun.c')
-rw-r--r--src/nm-cloud-setup/nmcs-provider-aliyun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-cloud-setup/nmcs-provider-aliyun.c b/src/nm-cloud-setup/nmcs-provider-aliyun.c
index 86ecd76b..7f51f431 100644
--- a/src/nm-cloud-setup/nmcs-provider-aliyun.c
+++ b/src/nm-cloud-setup/nmcs-provider-aliyun.c
@@ -31,11 +31,12 @@ again:
          * This is mainly for testing, it's not usually supposed to be configured.
          * Consider this private API! */
         base = g_getenv(NMCS_ENV_VARIABLE("NM_CLOUD_SETUP_ALIYUN_HOST"));
+        base = nmcs_utils_uri_complete_interned(base) ?: ("" NM_ALIYUN_HOST);
 
         if (!g_atomic_pointer_compare_and_exchange(&base_cached, NULL, base))
             goto again;
     }
-    base = nmcs_utils_uri_complete_interned(base) ?: ("" NM_ALIYUN_BASE);
+
     return base;
 }