diff --git a/src/shadowbox/server/shared_metrics.spec.ts b/src/shadowbox/server/shared_metrics.spec.ts index ebe57025..a7e73b52 100644 --- a/src/shadowbox/server/shared_metrics.spec.ts +++ b/src/shadowbox/server/shared_metrics.spec.ts @@ -223,10 +223,11 @@ describe('OutlineSharedMetricsPublisher', () => { publisher.startSharing(); usageMetrics.reportedUsage = [ {country: 'AA', tunnelTimeSec: 99, inboundBytes: 11}, - {country: 'SY', tunnelTimeSec: 88, inboundBytes: 11}, + {country: 'CU', tunnelTimeSec: 88, inboundBytes: 11}, {country: 'CC', tunnelTimeSec: 77, inboundBytes: 22}, {country: 'AA', tunnelTimeSec: 66, inboundBytes: 33}, {country: 'DD', tunnelTimeSec: 55, inboundBytes: 33}, + {country: 'SY', tunnelTimeSec: 44, inboundBytes: 44}, ]; clock.nowMs += 60 * 60 * 1000; @@ -240,6 +241,7 @@ describe('OutlineSharedMetricsPublisher', () => { {bytesTransferred: 22, tunnelTimeSec: 77, countries: ['CC']}, {bytesTransferred: 33, tunnelTimeSec: 66, countries: ['AA']}, {bytesTransferred: 33, tunnelTimeSec: 55, countries: ['DD']}, + {bytesTransferred: 44, tunnelTimeSec: 44, countries: ['SY']}, ], }); publisher.stopSharing(); diff --git a/src/shadowbox/server/shared_metrics.ts b/src/shadowbox/server/shared_metrics.ts index 8cb4b949..7e87a5d8 100644 --- a/src/shadowbox/server/shared_metrics.ts +++ b/src/shadowbox/server/shared_metrics.ts @@ -24,7 +24,7 @@ import {ServerConfigJson} from './server_config'; const MS_PER_HOUR = 60 * 60 * 1000; const MS_PER_DAY = 24 * MS_PER_HOUR; -const SANCTIONED_COUNTRIES = new Set(['CU', 'KP', 'SY']); +const SANCTIONED_COUNTRIES = new Set(['CU', 'KP']); export interface ReportedUsage { country: string;