+ if(!add_listen_address(mesh, address, NULL)) {
+ if(strcmp(mesh->myport, "0")) {
+ logger(mesh, MESHLINK_INFO, "Could not bind to port %s, asking OS to choose one for us", mesh->myport);
+ free(mesh->myport);
+ mesh->myport = strdup("0");
+
+ if(!mesh->myport) {
+ return false;
+ }
+
+ if(!add_listen_address(mesh, address, NULL)) {
+ return false;
+ }
+ } else {
+ return false;
+ }
+ }