Skip to content

Commit 6600eb2

Browse files
authored
Merge pull request #108 from opticSquid/fix/ip
trying to see which ip it is picking up
2 parents f3def18 + 9d2747a commit 6600eb2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ FROM amazoncorretto:21-alpine
1212

1313
WORKDIR /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"]

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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>

src/main/java/com/hangout/core/auth_api/utils/DeviceUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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"));

0 commit comments

Comments
 (0)