diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2025-09-04 13:17:10 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2025-09-04 13:17:10 +0200 |
| commit | 476b3e70b3fa57c91529cc7e5ae984f1d5bf2776 (patch) | |
| tree | 254375dabc610ab44facca714d9d6619e993f371 | |
| parent | dc761d45ef35558ef6a36a57cbb8fe394da35236 (diff) | |
| parent | 411b63e3cd694cea2bbac2f2eaece51eec793a94 (diff) | |
| download | mullvadvpn-476b3e70b3fa57c91529cc7e5ae984f1d5bf2776.tar.xz mullvadvpn-476b3e70b3fa57c91529cc7e5ae984f1d5bf2776.zip | |
Merge branch 'set-non-blocking-socket-quic'
| -rw-r--r-- | .github/workflows/git-commit-message-style.yml | 2 | ||||
| -rw-r--r-- | tunnel-obfuscation/src/quic.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/git-commit-message-style.yml b/.github/workflows/git-commit-message-style.yml index 3903db9ca4..53877a5d69 100644 --- a/.github/workflows/git-commit-message-style.yml +++ b/.github/workflows/git-commit-message-style.yml @@ -35,4 +35,4 @@ jobs: max-subject-line-length: '72' # The action's wordlist is a bit short. Add more accepted verbs additional-verbs: 'tidy, wrap, obfuscate, bias, prohibit, forbid, revert, slim, impl, disregard, reproduce, - signal' + signal, guarantee' diff --git a/tunnel-obfuscation/src/quic.rs b/tunnel-obfuscation/src/quic.rs index c966bf7d12..7cd4fcc305 100644 --- a/tunnel-obfuscation/src/quic.rs +++ b/tunnel-obfuscation/src/quic.rs @@ -151,6 +151,10 @@ impl Quic { socket.set_mark(fwmark).map_err(Error::Fwmark)?; } + // The caller is responsible for ensuring that the socket is in non-blocking mode + // when calling UdpSocket::from_std + socket.set_nonblocking(true).map_err(Error::BindError)?; + UdpSocket::from_std(std::net::UdpSocket::from(socket)).map_err(Error::BindError)? }; |
