Skip to content

Use correct IP address string for RequestRateLimiter

Daniel Gerhardt requested to merge use-correct-ipaddr-string into master

Previously, the toString() method of InetAddress was used to receive a string representation of the IP address. This actually returns the format / which was not intended. This did not cause any issues but could have introduced bugs in the future because of an unexpected value being stored in the variable.

See: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/InetAddress.html#toString()
See: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/net/InetAddress.html#getHostAddress()

Edited by Daniel Gerhardt

Merge request reports