Skip to content

Commit

Permalink
fix: pass proper type to connect function
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven committed Jan 26, 2020
1 parent b51177e commit f72fd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/tcp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class TcpSource extends Source {
const { hostname, port } = parse(url)
socket = connect(
Number(port) || 554,
hostname,
hostname === null ? undefined : hostname,
)
socket.on('error', e => {
console.error('TCP socket error:', e)
Expand Down

0 comments on commit f72fd3d

Please sign in to comment.