]> git.meshlink.io Git - meshlink/commitdiff
Remove redundant call to add_local_addresses().
authorGuus Sliepen <guus@meshlink.io>
Sun, 15 Mar 2020 15:33:46 +0000 (16:33 +0100)
committerGuus Sliepen <guus@meshlink.io>
Sun, 15 Mar 2020 15:33:46 +0000 (16:33 +0100)
src/meshlink.c

index 9f3b6ecd2094a89c92e68c0e9e62537b55a04518..8513c8f99613ed6785789be189aafaa96759feb0 100644 (file)
@@ -1161,7 +1161,6 @@ static void *setup_network_in_netns_thread(void *arg) {
        }
 
        bool success = setup_network(mesh);
-       add_local_addresses(mesh);
        return success ? arg : NULL;
 }
 #endif // HAVE_SETNS
@@ -1534,7 +1533,6 @@ meshlink_handle_t *meshlink_open_ex(const meshlink_open_params_t *params) {
 #endif // HAVE_SETNS
        } else {
                success = setup_network(mesh);
-               add_local_addresses(mesh);
        }
 
        if(!success) {