forked from Shiloh/remnantchat
fix: use rtcConfig for file transfers
This commit is contained in:
parent
1f1e112ec1
commit
99a9ab7838
14
package-lock.json
generated
14
package-lock.json
generated
@ -39,7 +39,7 @@
|
||||
"readable-web-to-node-stream": "^3.0.2",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sass": "^1.54.3",
|
||||
"secure-file-transfer": "^0.0.4",
|
||||
"secure-file-transfer": "^0.0.7",
|
||||
"streamsaver": "^2.0.6",
|
||||
"trystero": "github:jeremyckahn/trystero#bugfix/29__clean-up-peers",
|
||||
"typeface-public-sans": "^1.1.13",
|
||||
@ -23282,9 +23282,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/secure-file-transfer": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://registry.npmjs.org/secure-file-transfer/-/secure-file-transfer-0.0.4.tgz",
|
||||
"integrity": "sha512-oqxgXA4YdrRZkOb5GNEXSOagMbLs6AKYoVWonBLL/dIxjR3KRC49P3rf6xOLXVzIvxr947PlXN6yol44ZfVo0Q==",
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/secure-file-transfer/-/secure-file-transfer-0.0.7.tgz",
|
||||
"integrity": "sha512-E4jxuZci0KSxdHEcH9006BYHKRfsBNP1PSdsM/3b1BLDPxoRvqj1RZN+dHJ4lJ42Pd7YzBDIOEXrzmBG5rHAOg==",
|
||||
"dependencies": {
|
||||
"@types/streamsaver": "^2.0.1",
|
||||
"@types/webtorrent": "^0.109.3",
|
||||
@ -43748,9 +43748,9 @@
|
||||
}
|
||||
},
|
||||
"secure-file-transfer": {
|
||||
"version": "0.0.4",
|
||||
"resolved": "https://registry.npmjs.org/secure-file-transfer/-/secure-file-transfer-0.0.4.tgz",
|
||||
"integrity": "sha512-oqxgXA4YdrRZkOb5GNEXSOagMbLs6AKYoVWonBLL/dIxjR3KRC49P3rf6xOLXVzIvxr947PlXN6yol44ZfVo0Q==",
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/secure-file-transfer/-/secure-file-transfer-0.0.7.tgz",
|
||||
"integrity": "sha512-E4jxuZci0KSxdHEcH9006BYHKRfsBNP1PSdsM/3b1BLDPxoRvqj1RZN+dHJ4lJ42Pd7YzBDIOEXrzmBG5rHAOg==",
|
||||
"requires": {
|
||||
"@types/streamsaver": "^2.0.1",
|
||||
"@types/webtorrent": "^0.109.3",
|
||||
|
@ -35,7 +35,7 @@
|
||||
"readable-web-to-node-stream": "^3.0.2",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sass": "^1.54.3",
|
||||
"secure-file-transfer": "^0.0.4",
|
||||
"secure-file-transfer": "^0.0.7",
|
||||
"streamsaver": "^2.0.6",
|
||||
"trystero": "github:jeremyckahn/trystero#bugfix/29__clean-up-peers",
|
||||
"typeface-public-sans": "^1.1.13",
|
||||
|
@ -2,6 +2,7 @@ import { FileTransfer, setStreamSaverMitm } from 'secure-file-transfer'
|
||||
|
||||
import { trackerUrls } from 'config/trackerUrls'
|
||||
import { streamSaverUrl } from 'config/streamSaverUrl'
|
||||
import { rtcConfig } from 'config/rtcConfig'
|
||||
|
||||
setStreamSaverMitm(streamSaverUrl)
|
||||
|
||||
@ -9,4 +10,9 @@ export const fileTransfer = new FileTransfer({
|
||||
torrentOpts: {
|
||||
announce: trackerUrls,
|
||||
},
|
||||
webtorrentInstanceOpts: {
|
||||
tracker: {
|
||||
rtcConfig,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user