Merge pull request #14805 from gouqi11/privateConnection

阿里云内网connectionStr
This commit is contained in:
Zexi Li
2022-08-17 10:39:35 +08:00
committed by GitHub
+7 -2
View File
@@ -346,12 +346,17 @@ func (rds *SDBInstance) GetInternalConnectionStr() string {
return ""
}
str := ""
for _, net := range rds.netInfo {
if net.IPType != "Public" {
return net.ConnectionString
if net.IPType == "Private" {
return net.ConnectionString
} else if net.IPType == "Inner" {
str = net.ConnectionString
}
}
}
return ""
return str
}
func (rds *SDBInstance) GetConnectionStr() string {