mirror of
https://github.com/louislam/dockge.git
synced 2024-11-23 19:34:04 +00:00
Fix the hostname for the current agent
This commit is contained in:
parent
cc02eee50c
commit
b8cff4cc51
1 changed files with 6 additions and 1 deletions
|
@ -274,7 +274,12 @@ export default defineComponent({
|
|||
},
|
||||
methods: {
|
||||
parsePort(port) {
|
||||
return parseDockerPort(port, this.stack.primaryHostname);
|
||||
if (this.stack.endpoint) {
|
||||
return parseDockerPort(port, this.stack.endpoint.hostname);
|
||||
} else {
|
||||
let hostname = this.$root.info.primaryHostname || location.hostname;
|
||||
return parseDockerPort(port, hostname);
|
||||
}
|
||||
},
|
||||
remove() {
|
||||
delete this.jsonObject.services[this.name];
|
||||
|
|
Loading…
Reference in a new issue