MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / clientFeatures

Method clientFeatures

features/selector.go:133–136  ·  view source on GitHub ↗

clientFeatures will return the list of currently available features that cloudflared should provide to the edge.

()

Source from the content-addressed store, hash-verified

131
132// clientFeatures will return the list of currently available features that cloudflared should provide to the edge.
133func (fs *featureSelector) clientFeatures() []string {
134 // Evaluate any remote features along with static feature list to construct the list of features
135 return dedupAndRemoveFeatures(slices.Concat(defaultFeatures, fs.cliFeatures, []string{string(fs.datagramVersion())}))
136}
137
138func (fs *featureSelector) refresh(ctx context.Context) error {
139 record, err := fs.resolver.lookupRecord(ctx)

Callers 1

SnapshotMethod · 0.95

Calls 2

datagramVersionMethod · 0.95
dedupAndRemoveFeaturesFunction · 0.85

Tested by

no test coverage detected