Skip to content

Commit

Permalink
fix: fix mapping ipv6-based port mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Steveb-p authored and AlexZeitler committed May 11, 2021
1 parent 21b63cb commit 8aa8465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/port-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const mapPorts = (

if (lastDoubleColon === -1) {
return {
exposed: { port: Number(port), protocol },
exposed: { port: Number(port), protocol }
}
}

Expand All @@ -30,7 +30,7 @@ const mapPorts = (

return {
exposed: { port: Number(port), protocol },
mapped: { port: Number(mappedPort), address },
mapped: { port: Number(mappedPort), address }
}
})
}
Expand Down

0 comments on commit 8aa8465

Please sign in to comment.