Add a orport-srcaddr server transport option.

The option controls what source address to use when dialing the
(Ext)ORPort. Using a source address other than 127.0.0.1, or a range of
addresses, can help with localhost ephemeral port exhaustion.

https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40198
This commit is contained in:
David Fifield 2022-11-15 23:42:21 -07:00 committed by meskio
parent 9d72b30603
commit 0780f2e809
No known key found for this signature in database
GPG key ID: 52B8F5AC97A2DA86
6 changed files with 260 additions and 11 deletions

2
go.mod
View file

@ -3,7 +3,7 @@ module git.torproject.org/pluggable-transports/snowflake.git/v2
go 1.15
require (
git.torproject.org/pluggable-transports/goptlib.git v1.1.0
git.torproject.org/pluggable-transports/goptlib.git v1.3.0
github.com/clarkduvall/hyperloglog v0.0.0-20171127014514-a0107a5d8004
github.com/gorilla/websocket v1.5.0
github.com/pion/ice/v2 v2.2.6