public addTrustedHosts()

in packages/azure-kusto-data/src/kustoTrustedEndpoints.ts [95:104]


    public addTrustedHosts(rules: MatchRule[] | null, replace: boolean): void {
        if (!rules?.length) {
            if (replace) {
                this.additionalMatcher = null;
            }
            return;
        }

        this.additionalMatcher = FastSuffixMatcher.createFromExisting(replace ? null : this.additionalMatcher, rules);
    }