Modify backend to only bind to 127.0.0.1
This commit is contained in:
		
							parent
							
								
									e27417dc46
								
							
						
					
					
						commit
						9df5024856
					
				@ -50,8 +50,12 @@ class MempoolSpace {
 | 
			
		||||
    statistics.startStatistics();
 | 
			
		||||
    fiatConversion.startService();
 | 
			
		||||
 | 
			
		||||
    this.server.listen(8999, () => {
 | 
			
		||||
      console.log(`Server started on port 8999 :)`);
 | 
			
		||||
    let opts = {
 | 
			
		||||
        host: "127.0.0.1",
 | 
			
		||||
        port: 8999
 | 
			
		||||
    };
 | 
			
		||||
    this.server.listen(opts, () => {
 | 
			
		||||
      console.log(`Server started on ${opts.host}:${opts.port})`);
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user