Skip to content

Commit

Permalink
fix broken config handling
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <github@klug.nrw>
  • Loading branch information
J-N-K committed Jan 15, 2022
1 parent 0f11c7b commit da89791
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ protected boolean remoteEnabled() {
// if we can't determine a set property, we use true (default is remote enabled)
return true;
}
return (boolean) Objects.requireNonNullElse(properties.get("remote"), true);
Object remoteEnabled = properties.get("remote");
return (remoteEnabled == null || "true".equals(remoteEnabled.toString()));

} catch (IOException e) {
return true;
}
Expand Down

0 comments on commit da89791

Please sign in to comment.