mirror of
https://github.com/louislam/dockge.git
synced 2025-03-15 13:54:46 +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: {
|
methods: {
|
||||||
parsePort(port) {
|
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() {
|
remove() {
|
||||||
delete this.jsonObject.services[this.name];
|
delete this.jsonObject.services[this.name];
|
||||||
|
|
Loading…
Add table
Reference in a new issue