mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
device: fix indentation
Fixes: 50a6386c3b
('device: disable IPv6 in NetworkManager when disabled in kernel')
This commit is contained in:
parent
ce31bc3ddc
commit
e44909321c
|
@ -12558,13 +12558,15 @@ activate_stage3_ip_config(NMDevice *self)
|
|||
|
||||
ipv6_method = nm_device_get_effective_ip_config_method(self, AF_INET6);
|
||||
if (!g_file_test("/proc/sys/net/ipv6", G_FILE_TEST_IS_DIR)) {
|
||||
_NMLOG_ip((nm_device_sys_iface_state_is_external(self) ||
|
||||
NM_IN_STRSET(ipv6_method,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_AUTO,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_DISABLED,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_IGNORE)) ? LOGL_DEBUG : LOGL_WARN,
|
||||
_NMLOG_ip((nm_device_sys_iface_state_is_external(self)
|
||||
|| NM_IN_STRSET(ipv6_method,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_AUTO,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_DISABLED,
|
||||
NM_SETTING_IP6_CONFIG_METHOD_IGNORE))
|
||||
? LOGL_DEBUG
|
||||
: LOGL_WARN,
|
||||
AF_INET6,
|
||||
"IPv6 not supported by kernel resulting in \"ipv6.method=disabled\"");
|
||||
"IPv6 not supported by kernel resulting in \"ipv6.method=disabled\"");
|
||||
ipv6_method = NM_SETTING_IP6_CONFIG_METHOD_DISABLED;
|
||||
} else if (nm_streq(ipv6_method, NM_SETTING_IP6_CONFIG_METHOD_AUTO)) {
|
||||
ipv6_method = klass->get_ip_method_auto(self, AF_INET6);
|
||||
|
|
Loading…
Reference in a new issue