Skip to content

Commit

Permalink
let user map wireguard port
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketen committed Aug 30, 2024
1 parent 0009174 commit 5867249
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,14 @@ export function PortsByService({
return conflictingPorts;
}

// Check if any port is over the max port number, except for the WireGuard port
function getPortsOverTheMax(): PortMapping[] {
return ports.filter(
({ host, container, deletable }) =>
(deletable &&
(container > maxPortNumber || (host && host > maxPortNumber))) ||
(host && host > maxEphemeralPortNumber)
((container > maxPortNumber || (host && host > maxPortNumber)) &&
host !== 51820)) ||
(host && host > maxEphemeralPortNumber && host !== 51820)
);
}

Expand Down

0 comments on commit 5867249

Please sign in to comment.