- for(i = 0; i < udp_sockets; i++)
- if(FD_ISSET(udp_socket[i], f))
- handle_incoming_vpn_data(udp_socket[i]);
+ for(i = 0; i < listen_sockets; i++)
+ {
+ if(FD_ISSET(udp_socket[i], f))
+ handle_incoming_vpn_data(udp_socket[i]);
+ if(FD_ISSET(tcp_socket[i], f))
+ handle_new_meta_connection(tcp_socket[i]);
+ }