Skip to content

Commit 0707d79

Browse files
authored
Bind TCPServerSocket only on localhost instead of all interfaces
Bind TCPServerSocket only on localhost instead of all interfaces
2 parents 94fd2f1 + 487b329 commit 0707d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { collectConnections, readStream, writeStream } from './streams';
1818

19-
const server = new TCPServerSocket('::');
19+
const server = new TCPServerSocket('::1');
2020
let address: string;
2121
let port: number;
2222
let connections = 0;

0 commit comments

Comments
 (0)