Skip to content

Commit 2fa2772

Browse files
committed
Reassign IP variable.
1 parent bd4050b commit 2fa2772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/barcodeapi/server/core/RequestContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public RequestContext(Request request, boolean createSession) {
108108

109109
// Swap with header if via proxy
110110
this.fwd = (fwd == null) ? null : ip;
111-
this.ip = (fwd == null) ? ip : fwd;
111+
this.ip = ip = (fwd == null) ? ip : fwd;
112112

113113
// Update scheme if via proxy
114114
HttpURI uri = request.getMetaData().getURI();

0 commit comments

Comments
 (0)