clientFeatures will return the list of currently available features that cloudflared should provide to the edge.
()
| 131 | |
| 132 | // clientFeatures will return the list of currently available features that cloudflared should provide to the edge. |
| 133 | func (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 | |
| 138 | func (fs *featureSelector) refresh(ctx context.Context) error { |
| 139 | record, err := fs.resolver.lookupRecord(ctx) |
no test coverage detected