@@ -25,6 +25,7 @@ class CosConfig {
2525 m_secret_key(" " ),
2626 m_region(" " ),
2727 m_tmp_token(" " ),
28+ m_set_intranet_once(false ),
2829 m_is_use_intranet(false ),
2930 m_intranet_addr(" " ),
3031 m_config_parsed(false ) {}
@@ -42,6 +43,7 @@ class CosConfig {
4243 m_secret_key(secret_key),
4344 m_region(region),
4445 m_tmp_token(" " ),
46+ m_set_intranet_once(false ),
4547 m_is_use_intranet(false ),
4648 m_intranet_addr(" " ),
4749 m_config_parsed(false ) {}
@@ -60,6 +62,7 @@ class CosConfig {
6062 m_secret_key(secret_key),
6163 m_region(region),
6264 m_tmp_token(tmp_token),
65+ m_set_intranet_once(false ),
6366 m_is_use_intranet(false ),
6467 m_intranet_addr(" " ),
6568 m_config_parsed(false ) {}
@@ -73,6 +76,7 @@ class CosConfig {
7376 m_secret_key = config.m_secret_key ;
7477 m_region = config.m_region ;
7578 m_tmp_token = config.m_tmp_token ;
79+ m_set_intranet_once = config.m_set_intranet_once ;
7680 m_is_use_intranet = config.m_is_use_intranet ;
7781 m_intranet_addr = config.m_intranet_addr ;
7882 m_config_parsed = config.m_config_parsed ;
@@ -87,6 +91,7 @@ class CosConfig {
8791 m_secret_key = config.m_secret_key ;
8892 m_region = config.m_region ;
8993 m_tmp_token = config.m_tmp_token ;
94+ m_set_intranet_once = config.m_set_intranet_once ;
9095 m_is_use_intranet = config.m_is_use_intranet ;
9196 m_intranet_addr = config.m_intranet_addr ;
9297 m_config_parsed = config.m_config_parsed ;
@@ -159,6 +164,8 @@ class CosConfig {
159164
160165 std::string GetIntranetAddr ();
161166
167+ bool GetSetIntranetOnce () const {return m_set_intranet_once;}
168+
162169 // / \brief 设置日志回调
163170 void SetLogCallback (const LogCallback log_callback);
164171
@@ -179,6 +186,7 @@ class CosConfig {
179186 std::string m_region;
180187 std::string m_tmp_token;
181188
189+ bool m_set_intranet_once;
182190 bool m_is_use_intranet;
183191 std::string m_intranet_addr;
184192 bool m_config_parsed;
0 commit comments