Skip to content

Commit

Permalink
Merge pull request #684 from TeamPiped/federated-georestriction-bypass
Browse files Browse the repository at this point in the history
Check if authenticated before helping other instances for bypassing georestrictions
  • Loading branch information
FireMasterK authored Aug 27, 2023
2 parents 015fc06 + b84e357 commit 40a8fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void run() {
var type = event.get("type").asText();
var content = event.at("/content/content");

if (type.startsWith("video.piped.stream.bypass.")) {
if (!UNAUTHENTICATED && type.startsWith("video.piped.stream.bypass.")) {
switch (type) {
case "video.piped.stream.bypass.request" -> {
FederatedGeoBypassRequest bypassRequest = mapper.treeToValue(content, FederatedGeoBypassRequest.class);
Expand Down

0 comments on commit 40a8fa3

Please sign in to comment.