Skip to content

Commit dc71f02

Browse files
feat: add more dc networks (#849)
1 parent f2534b4 commit dc71f02

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/lib/geoip/overrides.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,14 @@ export const isHostingOverrides = [
99
normalizedNetwork: /psychz networks/,
1010
isHosting: true,
1111
},
12+
// https://www.hetzner.com/
13+
{
14+
normalizedNetwork: /hetzner online/,
15+
isHosting: true,
16+
},
17+
// https://www.ovhcloud.com/
18+
{
19+
normalizedNetwork: /\bovh\b/,
20+
isHosting: true,
21+
},
1222
];

test/tests/unit/geoip/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('geoip service', () => {
243243
network: 'Hetzner Online',
244244
normalizedNetwork: 'hetzner online',
245245
isProxy: false,
246-
isHosting: null,
246+
isHosting: true,
247247
isAnycast: null,
248248
allowedCountries: [ 'DE' ],
249249
});
@@ -267,7 +267,7 @@ describe('geoip service', () => {
267267
network: 'Hetzner Online',
268268
normalizedNetwork: 'hetzner online',
269269
isProxy: false,
270-
isHosting: null,
270+
isHosting: true,
271271
isAnycast: null,
272272
allowedCountries: [ 'DE' ],
273273
});

0 commit comments

Comments
 (0)