- syslog(LOG_ERR, _("Got bad BASIC_INFO from " IP_ADDR_S),
- IP_ADDR_V(cl->real_ip));
+ syslog(LOG_ERR, _("Got bad BASIC_INFO from %s"),
+ cl->hostname);
+ if(cl->status.outgoing)
+ {
+ /* If we get here, it means that our uplink uses the wrong protocol.
+ If we don't do anything, we will reconnect every 5 seconds. Pretty dumb.
+ So we disable the outgoing flag, so that we won't reconnect anymore.
+ This still allows other tinc daemons to connect to us.
+ */
+ syslog(LOG_ERR, _("Warning: disabling uplink!"));
+ cl->status.outgoing = 0;
+ }