Skip to content

Commit

Permalink
Bugfix for tunnel author origin
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmalloy committed Dec 30, 2023
1 parent 66c2879 commit c775d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/jasper/component/TunnelClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void proxy(Ref remote, ProxyRequest request) {
if (users.isEmpty()) {
throw new InvalidTunnelException("Tunnel requested, but no user signature to lookup private key.");
}
var user = userRepository.findOneByQualifiedTag(users.get(0));
var user = userRepository.findOneByQualifiedTag(users.get(0) + remote.getOrigin());
if (user.isEmpty() || user.get().getKey() == null) {
throw new InvalidTunnelException("Tunnel requested, but user " + users.get(0) + " does not have a private key set.");
}
Expand Down

0 comments on commit c775d24

Please sign in to comment.