mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	chore: print resolved host in the http server terminal (#30677)
This commit is contained in:
		
							parent
							
								
									5d21e3729c
								
							
						
					
					
						commit
						979233e483
					
				@ -126,7 +126,8 @@ export class HttpServer {
 | 
			
		||||
        this._urlPrefix = address;
 | 
			
		||||
      } else {
 | 
			
		||||
        this._port = address.port;
 | 
			
		||||
        this._urlPrefix = `http://${host}:${address.port}`;
 | 
			
		||||
        const resolvedHost = address.family === 'IPv4' ? address.address : `[${address.address}]`;
 | 
			
		||||
        this._urlPrefix = `http://${resolvedHost}:${address.port}`;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    return this._urlPrefix;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user