CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
loopback-binds.d.ts19 linesDownload Raw Back to serve
1/**2 * @license3 * Copyright 2025 Qwen Team4 * SPDX-License-Identifier: Apache-2.05 */6/**7 * The set of `--hostname` values that are treated as loopback. Both the8 * runner (boot-time auth-required check) and the request middleware (Host9 * header allowlist) consult this; keeping the set in one place prevents the10 * two from drifting apart.11 *12 * IPv6 loopback is included so users who prefer `::1`/`[::1]` don't have to13 * configure a token. We compare against the raw hostname string the operator14 * typed, not the resolved interface — both must be loopback for the bind to15 * be auth-free.16 */17export declare const LOOPBACK_BINDS: ReadonlySet<string>;18export declare function isLoopbackBind(hostname: string): boolean;19 
basant307/AI_Governance_Project · CoolFace