]> git.meshlink.io Git - meshlink/commitdiff
manynodes: do not add localhost as node's address
authorSaverio Proto <zioproto@gmail.com>
Mon, 18 Aug 2014 15:35:56 +0000 (17:35 +0200)
committerSaverio Proto <zioproto@gmail.com>
Mon, 18 Aug 2014 15:35:56 +0000 (17:35 +0200)
examples/manynodes.c

index bc3a1a178e94238eb2853768ee13d4095ad044b3..99a3e5b2dd806a15d2f32fd5f337b653695691e6 100644 (file)
@@ -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));