Also debug the user-agent
This commit is contained in:
		
							parent
							
								
									308c530f07
								
							
						
					
					
						commit
						65145d9aae
					
				|  | @ -291,6 +291,7 @@ def build_user_agent(): | |||
|         'speedtest-cli/%s' % __version__ | ||||
|     ) | ||||
|     USER_AGENT = ' '.join(ua_tuple) | ||||
|     printer(USER_AGENT, debug=True) | ||||
|     return USER_AGENT | ||||
| 
 | ||||
| 
 | ||||
|  | @ -1141,9 +1142,6 @@ def shell(): | |||
| 
 | ||||
|     socket.setdefaulttimeout(args.timeout) | ||||
| 
 | ||||
|     # Pre-cache the user agent string | ||||
|     build_user_agent() | ||||
| 
 | ||||
|     # If specified bind to a specific IP address | ||||
|     if args.source: | ||||
|         SOURCE = args.source | ||||
|  | @ -1156,6 +1154,9 @@ def shell(): | |||
|     if debug: | ||||
|         DEBUG = True | ||||
| 
 | ||||
|     # Pre-cache the user agent string | ||||
|     build_user_agent() | ||||
| 
 | ||||
|     if args.simple or args.csv or args.json: | ||||
|         quiet = True | ||||
|     else: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue