Skip to content

Commit

Permalink
just send hostname, but use subdomain for that if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Visnu Pitiyanuvath committed Aug 24, 2011
1 parent 0d2546e commit 41a52d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module/nko.js
Expand Up @@ -8,9 +8,11 @@ module.exports = function ping(code, callback) {
if (typeof code !== 'string')
throw Error('Go to http://nodeknockout.com/teams/mine to get your code.');

var subdomain = process.env.SUBDOMAIN
, hostname = subdomain ? subdomain + '.nodejitsu.com' : os.hostname();

var params = {
hostname: os.hostname(), // joyent, linode
subdomain: process.env.SUBDOMAIN, // nodejitsu
hostname: hostname,
os: os.type(),
release: os.release()
},
Expand Down

0 comments on commit 41a52d7

Please sign in to comment.