add prelocal table to manipulate locally destinated traffic
[project/netifd.git] / config.c
index fa47b94..132ec43 100644 (file)
--- a/config.c
+++ b/config.c
@@ -136,8 +136,8 @@ config_parse_interface(struct uci_section *s, bool alias)
        if (blob_len(b.head) == 0)
                return;
 
-       if (iface->device_config)
-               device_set_config(dev, dev->type, b.head);
+       if (iface->device_config || dev->settings.flags)
+               device_apply_config(dev, dev->type, b.head);
        return;
 error_free_config:
        free(config);