-void update_node_udp(node_t *n, const sockaddr_t *sa) {
- if(n == myself) {
- logger(DEBUG_ALWAYS, LOG_WARNING, "Trying to update UDP address of myself!");
+void update_node_udp(meshlink_handle_t *mesh, node_t *n, const sockaddr_t *sa) {
+ if(n == mesh->self) {
+ logger(DEBUG_ALWAYS, LOG_WARNING, "Trying to update UDP address of mesh->self!");