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