mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
cloud-setup: fix _aliyun_base() initializing base URL
Fixes: f3404435a9 ('cloud-setup: configure secondary ip in Aliyun cloud')
This commit is contained in:
parent
e1f3acf3a6
commit
62104477c3
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue