Skip to content

Commit

Permalink
fixed allready forwarded port checking
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Iden <jonah.iden@typefox.io>
  • Loading branch information
jonah-iden committed Mar 1, 2024
1 parent 3ae132d commit 3c2f777
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class PortForwardingService {
return false;
}

const port = parseInt(address.split(':')[1]);
const port = parseInt(address.includes(':') ? address.split(':')[1] : address);

return !this.forwardedPorts.some(p => p.localPort === port);
}
Expand Down

0 comments on commit 3c2f777

Please sign in to comment.