Skip to content

Commit

Permalink
shall not resolve Host to ip
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Apr 9, 2024
1 parent 9dc51aa commit f3c92d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tis-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
mountPath: /opt/app/tis-uber/tis-assemble/conf/tis-web-config/
- name: tis-console-pvc
mountPath: "/opt/data"
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.0.15
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.0.17
# command: [ "/bin/sh", "-c", "sleep 1000000" ]
ports:
- name: tis-8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,13 @@ public boolean vistDbURL(boolean resolveHostIp, IDbUrlProcess urlProcess
* @return
*/
private String getHostIpAddress(String ip) {
try {
InetAddress address = InetAddress.getByName(ip);
return address.getHostAddress();
} catch (UnknownHostException e) {
throw new RuntimeException(e);
}
return ip;
// try {
// InetAddress address = InetAddress.getByName(ip);
// return address.getHostAddress();
// } catch (UnknownHostException e) {
// throw new RuntimeException(e);
// }
}

public String getDbType() {
Expand Down

0 comments on commit f3c92d6

Please sign in to comment.