mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-31 02:38:07 +08:00
Merge pull request #14805 from gouqi11/privateConnection
阿里云内网connectionStr
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user