Files
shenleiandClaude Haiku 5.5 2f185f914d Snapshot uncommitted work: proxy UI, sing-box integration, socks bridge
- Lab app: proxy panel, node editor, configuration and detail pages,
  responsive layout, and related tests
- Add meshport-socks crate and sing-box bridge scripts/docs
- Add singbox_flutter binding and meshport_client_core package
- FFI, VPN helper (unified mac path), and Android/macOS runner updates
- Docs for architecture, client runtime, UI design, and validation
- UI design output artifacts under outputs/ui

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-12 10:06:15 +09:00

10 lines
294 B
C

#include "protector.h"
#include <stdatomic.h>
static _Atomic(uintptr_t) protector;
void proxy_set_protector(uintptr_t value) { atomic_store(&protector, value); }
int proxy_protect(int fd) {
uintptr_t value = atomic_load(&protector);
if (!value) return 0;
return ((int (*)(int))value)(fd);
}