Attempt to force better distribution of clients

This commit is contained in:
Bastian 2019-05-09 23:01:16 +02:00
parent e4a2882331
commit 2297707bed
1 changed files with 6 additions and 0 deletions

View File

@ -22,7 +22,13 @@ include "secret.conf";
mtu {{ mtu }};
{% if fastd_peers_limit > -1 %}
{% if item|int == 0 %}
peer limit {{ fastd_peers_limit-10 }};
{% elif item|int == (fastd_instances-1) %}
peer limit {{ fastd_peers_limit+10 }};
{% else %}
peer limit {{ fastd_peers_limit }};
{% endif %}
{% endif %}
on up "