Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Add mac hash to user agent header #3520

Merged
merged 4 commits into from Feb 23, 2017

Conversation

balajikris
Copy link
Member

The content to be added to Changelog is as follows:

  • add a SHA-256 hash of macAddress to userAgent header, per VS Telemetry standard.

balajikris and others added 3 commits February 23, 2017 11:06
header, per VS Telemetry standard.
.. mac address is sent in user agent header.
.. definitions as we're not on ES6. Thank you, jslint.
@amarzavery amarzavery merged commit ebc0f23 into Azure:dev Feb 23, 2017
var interfaceKeys = Object.keys(networkInterfaces);

var nicPattern;
if (os.platform().startsWith('win')) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.platform() does not return a string, it's an object!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where you're seeing its an object.

But looking at https://nodejs.org/api/os.html#os_os_platform

os.platform()
Added in: v0.5.0
Returns: <string>

Currently possible values are:
'aix'
'darwin'
'freebsd'
'linux'
'openbsd'
'sunos'
'win32'

@carlhoerberg
Copy link

carlhoerberg commented Mar 24, 2017 via email

@balajikris
Copy link
Member Author

yep, noticed the bug after i responded to this comment. I've responded to the bug now. Check it out and let me know if it worked.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants