Skip to content

Conversation

@slowscript
Copy link
Contributor

After 70cc5eb Warpinator can no longer reconnect to a rediscovered device after connection was once lost when the certificate is unchanged (remote comes back with the same IP as last time). I have fixed this by adding a condition to also reconnect when certificate is up to date and the remote is offline. The newly_discovered flag is to allow reconnect after server restart in which case remotes are cleared, but certificates are not (CERT_UP_TO_DATE and RemoteStatus.INIT_CONNECTING, which on its own could also mean that the remote thread is already running). Another option in this case would be to also clear the certificates on restart.

(Sorry about taking so long to finish the text message PR, hopefully I'll get to it soon)

@Cobinja
Copy link
Member

Cobinja commented Oct 15, 2025

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants