File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
src/main/java/com/hangout/core/auth_api/utils Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ FROM amazoncorretto:21-alpine
1212
1313WORKDIR /app
1414
15- COPY --from=builder /usr/src/app/target/hangout-auth-api-2.4.1 .jar .
15+ COPY --from=builder /usr/src/app/target/hangout-auth-api-2.4.2 .jar .
1616
17- CMD ["java" , "-jar" , "hangout-auth-api-2.4.1 .jar" ]
17+ CMD ["java" , "-jar" , "hangout-auth-api-2.4.2 .jar" ]
Original file line number Diff line number Diff line change 1212 </parent >
1313 <groupId >com.hangout.core</groupId >
1414 <artifactId >hangout-auth-api</artifactId >
15- <version >2.4.1 </version >
15+ <version >2.4.2 </version >
1616 <name >hangout-auth-api</name >
1717 <description >Microservice for authentication and authorization of users in Hangout</description >
1818 <properties >
Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ public class DeviceUtil {
5959 */
6060 @ WithSpan (value = "collect device's details from request headers" )
6161 public static DeviceDetails getDeviceDetails (HttpServletRequest request ) {
62+ log .debug ("ip address from header: {}" , request .getHeader ("X-Forwarded-For" ));
63+ log .debug ("ip address from request remote address: {}" , request .getRemoteAddr ());
6264 String ip = request .getHeader ("X-Forwarded-For" ) != null ? request .getHeader ("X-Forwarded-For" )
6365 : request .getRemoteAddr ();
64- log .debug ("incoming ip address: {}" , ip );
66+ log .debug ("final incoming ip address: {}" , ip );
6567 String os = request .getHeader ("OS" );
6668 Integer screenWidth = Integer .parseInt (request .getHeader ("Screen-Width" ));
6769 Integer screenHeight = Integer .parseInt (request .getHeader ("Screen-Height" ));
You can’t perform that action at this time.
0 commit comments