mirror of
https://github.com/unraid/webgui.git
synced 2026-04-29 22:39:20 -05:00
Wireless fixes
- Allow connection to hidden networks - Set automatic as default choice for manual input
This commit is contained in:
@@ -185,8 +185,8 @@ case 'join':
|
||||
}
|
||||
if ($manual || $safe) {
|
||||
echo "<tr><td>"._('Security')."</td><td><select name=\"SECURITY\" onclick=\"showSecurity(this.value)\">";
|
||||
echo mk_option($safe, 'open', _('None'));
|
||||
echo mk_option($safe, 'auto', _('Automatic'));
|
||||
echo mk_option($safe, 'open', _('None'));
|
||||
echo mk_option($safe, 'PSK', _('WPA2'));
|
||||
echo mk_option($safe, 'PSK SAE', _('WPA2/WPA3'));
|
||||
echo mk_option($safe, 'SAE', _('WPA3'));
|
||||
|
||||
@@ -147,6 +147,7 @@ wpa_configuration(){
|
||||
[[ -z $2 && -n $CC ]] && echo "country=${CC,,}" >>$WPA
|
||||
echo "network={" >>$WPA
|
||||
echo "ssid=\"$SSID\"" >>$WPA
|
||||
echo "scan_ssid=1" >>$WPA
|
||||
[[ $1 == "PSK" ]] && echo "key_mgmt=WPA-PSK" >>$WPA
|
||||
[[ $1 == "SAE" ]] && echo "key_mgmt=SAE" >>$WPA
|
||||
[[ $1 =~ "IEEE" && $1 != "IEEE 802.1X/SHA-256" ]] && echo "key_mgmt=WPA-EAP" >>$WPA
|
||||
|
||||
Reference in New Issue
Block a user