… | |
… | |
1136 | { |
1136 | { |
1137 | connection *c = find_router (); |
1137 | connection *c = find_router (); |
1138 | |
1138 | |
1139 | if (c) |
1139 | if (c) |
1140 | c->connect_request (id); |
1140 | c->connect_request (id); |
|
|
1141 | //else // does not work, because all others must connect to the same router |
|
|
1142 | // // no router found, aggressively connect to all routers |
|
|
1143 | // for (conns_vector::iterator i = conns.begin (); i != conns.end (); ++i) |
|
|
1144 | // if ((*i)->conf->routerprio) |
|
|
1145 | // (*i)->establish_connection (); |
1141 | } |
1146 | } |
1142 | |
1147 | |
1143 | void |
1148 | void |
1144 | vpn::main_loop () |
1149 | vpn::main_loop () |
1145 | { |
1150 | { |