Include tunnel service canElevate check

This commit is contained in:
Alex Ross 2021-01-15 12:26:06 +01:00
parent 6889ed3ab1
commit be2732570a

View file

@ -45,7 +45,8 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
&& (tunnelOptions.localAddressPort !== undefined)
&& (tunnel.tunnelLocalPort !== undefined)
&& isPortPrivileged(tunnelOptions.localAddressPort)
&& (tunnel.tunnelLocalPort !== tunnelOptions.localAddressPort)) {
&& (tunnel.tunnelLocalPort !== tunnelOptions.localAddressPort)
&& this.tunnelService.canElevate) {
this.elevationPrompt(tunnelOptions, tunnel, source);
}