This repository was archived by the owner on May 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,15 @@ import auth from 'http-auth';
1616dotenv . config ( ) ;
1717//getting environment vars
1818const numCPUs = process . env . CPUS || os . cpus ( ) . length ;
19- let key = process . env . KEY || '? unlock' ;
19+ let key = process . env . KEY || 'unlock' ;
2020let url = process . env . URL || 'rubynetwork.tech' ;
2121let user = process . env . USERNAME || 'ruby' ;
2222let pass = process . env . PASSWORD || 'ruby' ;
23- let disableYT = process . env . YTDISABLE || 'false' ;
23+ let disableKEY = process . env . KEYDISABLE || 'false'
2424let educationWebsite = fs . readFileSync ( join ( __dirname , 'education/index.html' ) ) ;
2525let loadingPage = fs . readFileSync ( join ( __dirname , 'education/load.html' ) ) ;
2626const blacklisted : string [ ] = [ ] ;
2727const disableyt : string [ ] = [ ] ;
28- const otherBlacklist : string [ ] = [ ] ;
2928fs . readFile ( join ( __dirname , 'blocklists/ADS.txt' ) , ( err , data ) => {
3029 if ( err ) {
3130 console . error ( err ) ;
@@ -87,8 +86,7 @@ if (numCPUs > 0 && cluster.isPrimary) {
8786 } else if ( req . headers . host === url ) {
8887 app ( req , res ) ;
8988 } else if (
90- url . search === `?${ key } ` &&
91- ! req . headers . cookie ?. includes ( key )
89+ url . search === `?${ key } ` && ! req . headers . cookie ?. includes ( key ) && disableKEY === 'false'
9290 ) {
9391 res . writeHead ( 302 , {
9492 Location : '/' ,
You can’t perform that action at this time.
0 commit comments