mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 16:10:11 +01:00
wifi: disable mac-address-randomization by default
Enabling it by default can be bad. For example for captive portals.
Effectively revert commit 4f6c91d696
to again disable it by default.
https://bugzilla.gnome.org/show_bug.cgi?id=734081
This commit is contained in:
parent
f4c7a9d426
commit
98e4194963
2 changed files with 4 additions and 5 deletions
|
|
@ -612,7 +612,7 @@ ipv6.ip6-privacy=1
|
|||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><varname>wifi.mac-address-randomization</varname></term>
|
||||
<listitem><para>If left unspecified, MAC address randomization is used supported.</para></listitem>
|
||||
<listitem><para>If left unspecified, MAC address randomization is disabled.</para></listitem>
|
||||
</varlistentry>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
|
|
|||
|
|
@ -465,10 +465,9 @@ nm_supplicant_config_add_setting_wireless (NMSupplicantConfig * self,
|
|||
if (priv->mac_randomization == NM_SETTING_MAC_RANDOMIZATION_DEFAULT) {
|
||||
priv->mac_randomization = mac_randomization_fallback;
|
||||
if (priv->mac_randomization == NM_SETTING_MAC_RANDOMIZATION_DEFAULT) {
|
||||
/* use randomization if supported. */
|
||||
priv->mac_randomization = (mac_randomization_support == NM_SUPPLICANT_FEATURE_YES)
|
||||
? NM_SETTING_MAC_RANDOMIZATION_ALWAYS
|
||||
: NM_SETTING_MAC_RANDOMIZATION_NEVER;
|
||||
/* Don't use randomization, unless explicitly enabled.
|
||||
* Randomization can work badly with captive portals. */
|
||||
priv->mac_randomization = NM_SETTING_MAC_RANDOMIZATION_NEVER;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue