Skip to content

Commit 407356a

Browse files
authored
Remove unused function (#248)
1 parent 677ca09 commit 407356a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/src/api/auth.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,11 @@ const allowAllIps = Boolean(process.env.ALLOW_ALL_IPS);
55

66
if (allowAllIps) logs.warn(`WARNING! ALLOWING ALL IPFS`);
77

8-
// Authorize by IP
9-
10-
const adminIps = [
11-
// Admin users connecting from the VPN
12-
"172.33.10.",
13-
// Admin users connecting from the WIFI
14-
"172.33.12.",
15-
// WIFI DNP ip, which may be applied to users in some situations
16-
"172.33.1.10",
17-
// DAPPMANAGER IP
18-
"172.33.1.7",
19-
// Also localhost calls
20-
"127.0.0.1"
21-
];
22-
238
const localhostIps = [
249
// Internal calls from the same container
2510
"127.0.0.1"
2611
];
2712

28-
function isAdminIp(ip: string): boolean {
29-
return allowAllIps || adminIps.some(_ip => ip.includes(_ip));
30-
}
31-
3213
function isLocalhostIp(ip: string): boolean {
3314
return allowAllIps || localhostIps.some(_ip => ip.includes(_ip));
3415
}

0 commit comments

Comments
 (0)