Revert public host config
This commit is contained in:
@ -74,11 +74,17 @@ public class S3DvrStore : IDvrStore
|
||||
Expires = new DateTime(3000, 1, 1)
|
||||
});
|
||||
|
||||
var ub = new UriBuilder(url)
|
||||
{
|
||||
Scheme = _config.PublicHost.Scheme,
|
||||
Host = _config.PublicHost.Host
|
||||
};
|
||||
|
||||
var tsUpload = sw.Elapsed;
|
||||
|
||||
_logger.LogInformation("download={tc:#,##0}ms, probe={pc:#,##0}ms, upload={uc:#,##0}ms", tsDownload.TotalMilliseconds,
|
||||
tsProbe.TotalMilliseconds, tsUpload.TotalMilliseconds);
|
||||
|
||||
return new(new Uri(url), probe.Duration.TotalSeconds);
|
||||
return new(ub.Uri, probe.Duration.TotalSeconds);
|
||||
}
|
||||
}
|
||||
|
@ -11,4 +11,6 @@ public class StreamInfo
|
||||
public string ClientId { get; init; } = null!;
|
||||
|
||||
public string StreamId { get; init; } = null!;
|
||||
|
||||
public string EdgeIp { get; init; } = null!;
|
||||
}
|
||||
|
Reference in New Issue
Block a user