From: Saverio Proto Date: Mon, 18 Aug 2014 15:35:56 +0000 (+0200) Subject: manynodes: do not add localhost as node's address X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=fabbc781bb11f66383f2ef37ef84ec23094244d6;p=meshlink manynodes: do not add localhost as node's address --- diff --git a/examples/manynodes.c b/examples/manynodes.c index bc3a1a17..99a3e5b2 100644 --- a/examples/manynodes.c +++ b/examples/manynodes.c @@ -363,8 +363,6 @@ int main(int argc, char *argv[]) { bool itsnew = access(filename, R_OK); mesh[i] = meshlink_open(filename, nodename, "manynodes", i%_DEV_CLASS_MAX); meshlink_set_log_cb(mesh[i], MESHLINK_WARNING, log_message); - if(itsnew) - meshlink_add_address(mesh[i], "localhost"); if(!mesh[i]) { fprintf(stderr, "errno is: %d\n", meshlink_errno); fprintf(stderr, "Could not open %s: %s\n", filename, meshlink_strerror(meshlink_errno));