Skip to content

Commit

Permalink
Don't check latency for tunnels which are down (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu authored Oct 28, 2021
1 parent 8aa1b16 commit ddafba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlvpn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ mlvpn_rtun_check_slow(mlvpn_tunnel_t *tun)
return;
}
int status_changed = 0;
if (tun->srtt >= tun->latency_tolerence) {
if (tun->srtt >= tun->latency_tolerence && tun->status == MLVPN_AUTHOK) {
log_info("rtt", "%s latency reached threashold: %fms/%dms",
tun->name, tun->srtt, tun->latency_tolerence);
tun->status = MLVPN_HIGH_LATENCY;
Expand Down

0 comments on commit ddafba3

Please sign in to comment.