mirror of https://git.48k.eu/ogserver
Add non-standard HTTP header "X-Sequence" to the header section of requests (og_send_request) sent to a connected client. Define a starting sequence number when creating a new instance of struct og_client inside og_server_accept_cb. This sequence number is incremented by one for each outgoing request from ogServer. This sequence number is checked when receiving a response from a connected client, if they do not match the connection is dropped. Use sequence 0 for out-of-band commands (reboot, poweroff, stop). Any client response with header "X-Sequence: 0" bypasses sequence check. |
||
|---|---|---|
| cfg | ||
| src | ||
| tests | ||
| .gitignore | ||
| COPYING | ||
| Makefile.am | ||
| configure.ac | ||