Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block ott.io.mi.com requests (for unimplemented TCP dummycloud) #671

Merged
merged 1 commit into from
Jan 30, 2021

Conversation

rumpeltux
Copy link
Contributor

ot is for UDP, ott is for TCP cloud connect which isn’t implemented by our dummycloud

This causes trouble, when miio_client thinks it has a TCP server in its list and even when unreachable they don’t seem to get removed again…
There are still quirks to the local development setup. Because of regular (/etc/hosts) DNS resolution fallback, miio_client actually manages sometimes (esp when restarting Valetudo locally) to establish a dummycloud connection with 127.0.0.1 and it then takes a while (~10 minutes in my early observations) to eventually retry the configured development host. We’ll probably need a config variant that disables the dummycloud entirely when only serving /gslb requests.

And in case anybody else is looking into debugging miio_client behavior. It logs to stdout by default which isn’t very useful in detached state, but it does take commandline arguments: -l 4 -L /tmp/miio.log will give you more detailed understanding of what’s going on.

isn’t implemented).

While at it, remove duplicate /gslb implementation from miio-specific http server.

It cannot be reached from any other port but 80, so is of no use unless
we use iptables or patch the binaries (both of which we don’t want).

This makes our life a bit easier as there’s just one implementation
to maintain.
@Hypfer Hypfer merged commit 852683b into Hypfer:master Jan 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants