From 7586b482009b2af008339388d63b7028945cc57f Mon Sep 17 00:00:00 2001 From: jyyi1 Date: Fri, 6 Dec 2024 17:52:37 -0500 Subject: [PATCH] update vpn_others as well --- client/electron/vpn_service.ts | 4 ++-- client/go/outline/vpn/{vpn_windows.go => vpn_others.go} | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) rename client/go/outline/vpn/{vpn_windows.go => vpn_others.go} (97%) diff --git a/client/electron/vpn_service.ts b/client/electron/vpn_service.ts index df5570da43..772e6cdfd5 100644 --- a/client/electron/vpn_service.ts +++ b/client/electron/vpn_service.ts @@ -19,7 +19,7 @@ import { } from '../src/www/app/outline_server_repository/vpn'; // TODO: Separate this config into LinuxVpnConfig and WindowsVpnConfig. Some fields may share. -interface EstablishVpnConfig { +interface EstablishVpnRequest { id: string; interfaceName: string; connectionName: string; @@ -37,7 +37,7 @@ export async function establishVpn(request: StartRequestJson) { currentRequestId = request.id; statusCb?.(currentRequestId, TunnelStatus.RECONNECTING); - const config: EstablishVpnConfig = { + const config: EstablishVpnRequest = { id: currentRequestId, // TUN device name, compatible with old code: diff --git a/client/go/outline/vpn/vpn_windows.go b/client/go/outline/vpn/vpn_others.go similarity index 97% rename from client/go/outline/vpn/vpn_windows.go rename to client/go/outline/vpn/vpn_others.go index 2887bd3a49..016f406198 100644 --- a/client/go/outline/vpn/vpn_windows.go +++ b/client/go/outline/vpn/vpn_others.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !linux + package vpn import "errors"