Content-Length: 216811 | pFad | https://github.com/sebadob/rauthy/commit/6dfd0f4299b90c03d9b5a2fb4106d72f153146af

3D Merge pull request #77 from sebadob/no-session-ip-unwrap · sebadob/rauthy@6dfd0f4 · GitHub
Skip to content

Commit

Permalink
Merge pull request #77 from sebadob/no-session-ip-unwrap
Browse files Browse the repository at this point in the history
no unwrap on existing session ip
  • Loading branch information
sebadob authored Oct 11, 2023
2 parents 5fb7af4 + c5c8837 commit 6dfd0f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rauthy-models/src/entity/sessions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,14 @@ impl Session {
if (self.state == SessionState::Open || self.state == SessionState::Auth)
&& self.remote_ip.as_ref() != Some(&ip)
{
let session_ip = self
.remote_ip
.as_ref()
.map(|ip| ip.as_str())
.unwrap_or("UNKNOWN");
warn!(
"Invalid access for session {} / {} with different IP: {}",
self.id,
self.remote_ip.as_ref().unwrap(),
ip,
self.id, session_ip, ip,
);
return false;
}
Expand Down

0 comments on commit 6dfd0f4

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sebadob/rauthy/commit/6dfd0f4299b90c03d9b5a2fb4106d72f153146af

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy