QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
257 stars 41 forks source link

Fix/async lookup and register #123

Closed QuantumEntangledAndy closed 11 months ago

QuantumEntangledAndy commented 11 months ago

This attempts to change the way in which reolink registration servers as contacted.

Previously we would stop at the first sucessful reply from one of the reolink servers, but it seems that sometimes those servers had outdated information.

Now we keep waiting for more replies (while trying current replies) and only stop when either all replies fail or full complete and valid registration data is obtained.

We also now only register once rather once per registration method