MCPcopy
hub / github.com/CodebuffAI/codebuff / signalFromSpurService

Function signalFromSpurService

web/src/server/free-mode-country.ts:329–341  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

327}
328
329function signalFromSpurService(value: unknown): FreeModeIpPrivacySignal | null {
330 if (typeof value !== 'string') return null
331 const normalized = value.toUpperCase()
332 if (
333 normalized === 'OPENVPN' ||
334 normalized === 'WIREGUARD' ||
335 normalized === 'IPSEC' ||
336 normalized.includes('VPN')
337 ) {
338 return 'vpn'
339 }
340 return null
341}
342
343export function privacySignalsFromSpur(
344 data: Record<string, unknown>,

Callers 1

privacySignalsFromSpurFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected