Skip to content

Commit 13dcf12

Browse files
committed
feat: experimental port forwarding? maybe
1 parent 4a5042a commit 13dcf12

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/packages/torrent-stream.plugin/src/lib/torrent-manager.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import * as torrentStream from 'torrent-stream';
55
class FileCache<T> {
66
private cache: T;
77

8-
constructor(private cacheFile: string, private defaultValue: T) {
8+
constructor(
9+
private cacheFile: string,
10+
private defaultValue: T,
11+
) {
912
this.cache = this.readStreamCache();
1013
}
1114

@@ -119,6 +122,9 @@ class EngineCache {
119122
'torrent-stream-downloads',
120123
),
121124
});
125+
engine.listen(6141, () => {
126+
console.info('Torrent engine listening on port 6141');
127+
});
122128
engine.on('ready', () => {
123129
res(engine);
124130
});

0 commit comments

Comments
 (0)