… | |
… | |
840 | { |
840 | { |
841 | case vpn_packet::PT_PING: |
841 | case vpn_packet::PT_PING: |
842 | // we send pings instead of auth packets after some retries, |
842 | // we send pings instead of auth packets after some retries, |
843 | // so reset the retry counter and establish a connection |
843 | // so reset the retry counter and establish a connection |
844 | // when we receive a ping. |
844 | // when we receive a ping. |
845 | if (!ictx && !octx) |
845 | if (!ictx) |
846 | { |
846 | { |
847 | if (auth_rate_limiter.can (rsi)) |
847 | if (auth_rate_limiter.can (rsi)) |
848 | send_auth_request (rsi, true); |
848 | send_auth_request (rsi, true); |
849 | } |
849 | } |
850 | else |
850 | else |