Skip to content

Commit

Permalink
feat: provide hostname when connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 7, 2021
1 parent 920cbc0 commit 87fe7e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/* eslint-disable node/shebang */

import os from 'os';
import {
Instance as Chalk,
} from 'chalk';
Expand Down Expand Up @@ -99,6 +100,7 @@ let socket;
if (argv['api-key']) {
socket = io(argv['api-url'], {
query: {
hostname: os.hostname(),
token: String(argv['api-key']),
},
});
Expand Down

0 comments on commit 87fe7e8

Please sign in to comment.