File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -5,30 +5,11 @@ const allowAllIps = Boolean(process.env.ALLOW_ALL_IPS);
55
66if ( 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-
238const 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-
3213function isLocalhostIp ( ip : string ) : boolean {
3314 return allowAllIps || localhostIps . some ( _ip => ip . includes ( _ip ) ) ;
3415}
You can’t perform that action at this time.
0 commit comments