windows: authorize streamed requests, self-removal on uninstall, tun on
- Every request is authorized before it is handled, including `logs -f`, which skipped the check. - The state root is checked once per process: a second check under Wine moved the live root (and its log) aside. - uninstall removes Program Files after it exits: cmd got a garbled quoted command line; it now runs raw, outside the folder, windowless. - install no longer fails when the first start does; it says how to start. - `proxy-ctl proxy tun on` also turns on proxy.tun.enable. - build-tg-ws-proxy.sh resolves its output path before changing directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28cc7b2cbe
commit
8af7b2e628
5 files changed
+62
-15
No files matched your search
@@ -647,6 +647,11 @@ async fn proxy(ctl: &Ctl, verb: Option<ProxyVerb>) -> Result<()> {
|
||||
println!("{}", if s["proxy"]["tun"] == true { "on" } else { "off" });
|
||||
}
|
||||
OnOff::On => {
|
||||
ctl.edit(|c| {
|
||||
c["proxy"]["tun"]["enable"] = true.into();
|
||||
Ok(())
|
||||
})
|
||||
.await?;
|
||||
ctl.call(Request::Start { unit: "proxy-suite-tun".into() }).await?;
|
||||
}
|
||||
OnOff::Off => {
|
||||
|
||||
Reference in new issue
Block a user