y_node: change add node, handle ::1 with set node
This commit is contained in:
@@ -162,13 +162,14 @@ void * remove_node_from_nodes(void* arg){
|
||||
}
|
||||
void * add_node_to_nodes(void* arg){
|
||||
struct arg_send_file *argS=(struct arg_send_file*)arg;
|
||||
struct main_list_y_NODE_T *nodes=argS->nodes;
|
||||
/*struct main_list_y_NODE_T *nodes=argS->nodes;
|
||||
y_NODE_T node=argS->node;
|
||||
|
||||
if(NULL == search_node_in_list_y_NODE_T(nodes, node))
|
||||
push_back_list_y_NODE_T(nodes, node);
|
||||
|
||||
|
||||
*/
|
||||
update_nodes(argS->node,argS->nodes);
|
||||
return NULL;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user