Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
mainloop: Fix pause/resume on gateways without DTLS
Some gateways have DTLS disabled, so they do not send any X-DTLS-* options upon connection. This causes vpninfo->dtls_state to remain in DTLS_SECRET state forever. Currently we override this state to DTLS_SLEEPING on pause/resume, which is bad because the DTLS mainloop will get invoked on reconnection and it will start printing "No DTLS address" errors on every packet. Instead we should check for (vpninfo->dtls_state > DTLS_DISABLED), as is done elsewhere in the code. Reported-by: Holger Dell <holger.dell@gmail.com> Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information