mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-23 06:18:56 +00:00
fix: fix mapping ipv6-based port mappings
This commit is contained in:
parent
21b63cbc53
commit
8aa846553c
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ const mapPorts = (
|
|||
|
||||
if (lastDoubleColon === -1) {
|
||||
return {
|
||||
exposed: { port: Number(port), protocol },
|
||||
exposed: { port: Number(port), protocol }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -30,7 +30,7 @@ const mapPorts = (
|
|||
|
||||
return {
|
||||
exposed: { port: Number(port), protocol },
|
||||
mapped: { port: Number(mappedPort), address },
|
||||
mapped: { port: Number(mappedPort), address }
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue