mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 13:47:59 +02:00
fix: use correct hostname for the streamer
This commit is contained in:
@@ -230,7 +230,8 @@ export default class AnonymizedFile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cacheableLookup = new CacheableLookup();
|
const cacheableLookup = new CacheableLookup();
|
||||||
const ipHost = await cacheableLookup.lookupAsync("streamer");
|
const hostName = new URL(config.STREAMER_ENTRYPOINT).hostname;
|
||||||
|
const ipHost = await cacheableLookup.lookupAsync(hostName);
|
||||||
|
|
||||||
// use the streamer service
|
// use the streamer service
|
||||||
return got.stream(join(config.STREAMER_ENTRYPOINT, "api"), {
|
return got.stream(join(config.STREAMER_ENTRYPOINT, "api"), {
|
||||||
@@ -283,7 +284,8 @@ export default class AnonymizedFile {
|
|||||||
this.repository.getToken(),
|
this.repository.getToken(),
|
||||||
]);
|
]);
|
||||||
const cacheableLookup = new CacheableLookup();
|
const cacheableLookup = new CacheableLookup();
|
||||||
const ipHost = await cacheableLookup.lookupAsync("streamer");
|
const hostName = new URL(config.STREAMER_ENTRYPOINT).hostname;
|
||||||
|
const ipHost = await cacheableLookup.lookupAsync(hostName);
|
||||||
got
|
got
|
||||||
.stream(join(config.STREAMER_ENTRYPOINT, "api"), {
|
.stream(join(config.STREAMER_ENTRYPOINT, "api"), {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|||||||
Reference in New Issue
Block a user