mirror of https://github.com/ospab/ostp.git
Two unrelated user-reported blockers. Resume on desktop. The suspend/resume detector fired a single reconnect attempt roughly half a second after waking — which is exactly when the NIC has not reassociated yet, so it almost always failed. Failure then fell back to the ordinary 25s stall heuristic, which keys off a monotonic clock that does not advance while the machine is asleep, so it could take another 25s of real uptime to fire, or never fire. The forced reconnect is now sticky: retried every 3s until a session is actually established, verified via last_valid_recv rather than by "an attempt was made". Panel password. `api.password_hash` wants a hash, and nothing in the CLI could produce one: `ostp init server` emits password_hash: "" and the only generator was inline in the Server+Panel wizard branch, which is Unix-only — so on a plain server there was no supported path to working API auth at all. Adds `ostp hash-password [PASSWORD]`, prompting when the argument is omitted so the password stays out of shell history. Output verified to match both handle_login's comparison and a reference SHA-256. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||