Skip to content

Commit 35157b7

Browse files
author
Tony Crisci
authored
Merge pull request #26 from martenjacobs/tcp
Enable TCP support
2 parents a241269 + 9bb5f77 commit 35157b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/connection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ function createStream(opts) {
3232
try {
3333
switch (family.toLowerCase()) {
3434
case 'tcp':
35-
throw new Error('tcp dbus connections are not supported');
35+
host = params.host || 'localhost';
36+
port = params.port;
37+
return net.createConnection(port, host);
3638
case 'unix':
3739
if (params.socket) {
3840
return net.createConnection(params.socket);

0 commit comments

Comments
 (0)