Skip to content

Commit 8867047

Browse files
authored
add support for CN region (#934)
Signed-off-by: Alex Li <[email protected]> Signed-off-by: Alex Li <[email protected]>
1 parent 70f74f1 commit 8867047

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DefaultCallbackProvider.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ DefaultCallbackProvider::DefaultCallbackProvider(
421421
+ "."
422422
+ region_
423423
+ CONTROL_PLANE_URI_POSTFIX;
424+
// If region is in CN, add CN region uri postfix
425+
if(region_.rfind("cn-", 0) == 0) {
426+
control_plane_uri_ += ".cn";
427+
}
424428
}
425429

426430
getStreamCallbacks();

0 commit comments

Comments
 (0)