Fix network connection timeouts and security detection
- Fixed detectSecurity() where WPA2 (0x100/PSK) and WPA3 (0x400/SAE) flags were swapped, causing NM to reject connections silently - Added missing AP path to AddAndActivateConnection call - Added critical connection settings: UUID, interface-name, autoconnect, permissions - Changed init() to fail fast with logger.Fatal instead of silent failure on NM connection error - Added auth-alg and psk-flags to WPA/WPA2 security settings
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// Copyright 2017 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build js
|
||||
|
||||
package uuid
|
||||
|
||||
// getHardwareInterface returns nil values for the JS version of the code.
|
||||
// This remvoves the "net" dependency, because it is not used in the browser.
|
||||
// Using the "net" library inflates the size of the transpiled JS code by 673k bytes.
|
||||
func getHardwareInterface(name string) (string, []byte) { return "", nil }
|
||||
Reference in New Issue
Block a user