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"