Skip to content

Commit

Permalink
Support RPK for Echo resource.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed Mar 3, 2024
1 parent 332b8a3 commit 208df45
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ public void run() {
private static String getPrincipalName(Request request) {
Principal principal = request.getSourceContext().getPeerIdentity();
if (principal != null) {
return principal.getName();
String name = principal.getName();
if (!name.contains("/")) {
return name;
}
}
return null;
}
Expand Down

0 comments on commit 208df45

Please sign in to comment.