Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit 372ea2d

Browse files
committed
Context.getRemoteAddress() not returning IP address jooby-project#1371
1 parent f3943d8 commit 372ea2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/jooby-utow/src/main/java/io/jooby/internal/utow/UtowContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public UtowContext(HttpServerExchange exchange, Router router) {
145145
}
146146

147147
@Nonnull @Override public String getRemoteAddress() {
148-
return exchange.getSourceAddress().getHostName();
148+
return exchange.getSourceAddress().getHostString();
149149
}
150150

151151
@Nonnull @Override public String getProtocol() {

0 commit comments

Comments
 (0)