Skip to content

Commit

Permalink
Don't fail on dummy SA proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
ancwrd1 committed Jan 31, 2025
1 parent 69d161c commit 3635a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snxcore/src/tunnel/ipsec/natt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ impl NattProber {
let ikev1_session = Box::new(Ikev1Session::new(Identity::None)?);
let transport = Box::new(UdpTransport::new(socket, ikev1_session.new_codec()));
let mut service = Ikev1Service::new(transport, ikev1_session)?;
service.do_sa_proposal(Duration::from_secs(5)).await?;
debug!("SA proposal succeeded");

let _ = service.do_sa_proposal(Duration::from_secs(2)).await;

for _ in 0..MAX_NATT_PROBES {
if self.send_probe().await.is_ok() {
Expand Down

0 comments on commit 3635a13

Please sign in to comment.