From 6ab687553dad5128a0cc7fe6a7fba265b44c2435 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 15 Nov 2022 12:40:10 +0100 Subject: [PATCH] fix(connection): initialize as wifi relates to #3077 --- src/platform/networks_windows.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/networks_windows.go b/src/platform/networks_windows.go index 92228290..cc07ea87 100644 --- a/src/platform/networks_windows.go +++ b/src/platform/networks_windows.go @@ -229,7 +229,9 @@ func (env *Shell) wifiNetwork() (*Connection, error) { } func (env *Shell) parseNetworkInterface(network *WLAN_INTERFACE_INFO, clientHandle uint32) (*Connection, error) { - info := Connection{} + info := Connection{ + Type: WIFI, + } // Query wifi connection state var dataSize uint16