mirror of
https://github.com/louislam/dockge.git
synced 2024-11-07 17:05:42 +01:00
Fix the hostname for the current agent
This commit is contained in:
parent
cc02eee50c
commit
b8cff4cc51
@ -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 New Issue
Block a user