Add tunnel creation options to web api

This commit is contained in:
Alex Ross
2020-11-25 11:45:11 +01:00
parent 221a5570b6
commit 799e72cc2f
2 changed files with 11 additions and 4 deletions
+8 -1
View File
@@ -52,7 +52,7 @@ interface ITunnelProvider {
}
interface ITunnelFactory {
(tunnelOptions: ITunnelOptions, elevate?: boolean): Promise<ITunnel> | undefined;
(tunnelOptions: ITunnelOptions, tunnelCreationOptions: TunnelCreationOptions): Promise<ITunnel> | undefined;
}
interface ITunnelOptions {
@@ -66,6 +66,13 @@ interface ITunnelOptions {
label?: string;
}
export interface TunnelCreationOptions {
/**
* True when the local operating system will require elevation to use the requested local port.
*/
elevationRequired?: boolean;
}
interface ITunnel extends IDisposable {
remoteAddress: { port: number, host: string };