authentication: fix loopback detection
authorSven Rademakers <sven.rademakers@gmail.com>
Wed, 13 Mar 2024 14:52:53 +0000 (14:52 +0000)
committerSven Rademakers <sven.rademakers@gmail.com>
Wed, 13 Mar 2024 15:00:58 +0000 (15:00 +0000)
commit8ec72c606a285a1c6fc002a60fb389d56a26e2bc
tree0098d3c380ddacff6b949ac9fa7feb7c125a8af6
parentc5162080995736597e27f638c82718af902e5b00
authentication: fix loopback detection

When an request is coming from a loopback interface, authentication is
not required. This commit fixes ipv4 addresses mapped inside ipv6
addresses, by first converting to a canonical address. There addresses
were otherwise falsely tested as a non loopback addresses.
Cargo.toml
src/authentication/authentication_service.rs