Refactor Tunnel
This commit is contained in:
1 parent
96a9a2b36d
commit
b876e0225a
35 files changed
+642
-574
No files matched your search
@@ -0,0 +1,46 @@
|
||||
// Cloudflare service
|
||||
export {
|
||||
enableTunnel,
|
||||
disableTunnel,
|
||||
getTunnelStatus,
|
||||
isTunnelManuallyDisabled,
|
||||
isTunnelReconnecting,
|
||||
getTunnelService,
|
||||
setTunnelUnexpectedExitCallback,
|
||||
} from "./cloudflare/manager.js";
|
||||
export {
|
||||
killCloudflared,
|
||||
isCloudflaredRunning,
|
||||
ensureCloudflared,
|
||||
getDownloadStatus,
|
||||
} from "./cloudflare/cloudflared.js";
|
||||
export { probeUrlAlive as probeCloudflareAlive } from "./cloudflare/healthCheck.js";
|
||||
|
||||
// Tailscale service
|
||||
export {
|
||||
enableTailscale,
|
||||
disableTailscale,
|
||||
getTailscaleStatus,
|
||||
isTailscaleReconnecting,
|
||||
getTailscaleService,
|
||||
} from "./tailscale/manager.js";
|
||||
export {
|
||||
isTailscaleInstalled,
|
||||
isTailscaleRunning,
|
||||
isTailscaleLoggedIn,
|
||||
installTailscale,
|
||||
startLogin,
|
||||
startDaemonWithPassword,
|
||||
TAILSCALE_SOCKET,
|
||||
} from "./tailscale/tailscale.js";
|
||||
export { probeUrlAlive as probeTailscaleAlive } from "./tailscale/healthCheck.js";
|
||||
|
||||
// Shared
|
||||
export { loadState, generateShortId } from "./shared/state.js";
|
||||
export { checkInternet } from "./shared/internetCheck.js";
|
||||
export {
|
||||
RESTART_COOLDOWN_MS,
|
||||
NETWORK_SETTLE_MS,
|
||||
WATCHDOG_INTERVAL_MS,
|
||||
NETWORK_CHECK_INTERVAL_MS,
|
||||
} from "./shared/watchdogConfig.js";
|
||||
Reference in new issue
Block a user