From: Guus Sliepen Date: Sun, 15 Mar 2020 15:33:46 +0000 (+0100) Subject: Remove redundant call to add_local_addresses(). X-Git-Url: http://git.meshlink.io/?a=commitdiff_plain;h=991ae7d0d63cf72fb3071a5d6a8112e0bb547127;hp=b70b090a28ff4cbdce29a3ad030f7d51ce9079b2;p=meshlink Remove redundant call to add_local_addresses(). --- diff --git a/src/meshlink.c b/src/meshlink.c index 9f3b6ecd..8513c8f9 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -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) {