mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Forward bridge fingerprint
gitlab 28651
This commit is contained in:
parent
281d917beb
commit
b563141c6a
7 changed files with 41 additions and 11 deletions
|
@ -95,6 +95,9 @@ func socksAcceptLoop(ln *pt.SocksListener, config sf.ClientConfig, shutdown chan
|
|||
if arg, ok := conn.Req.Args.Get("utls-imitate"); ok {
|
||||
config.UTLSClientID = arg
|
||||
}
|
||||
if arg, ok := conn.Req.Args.Get("fingerprint"); ok {
|
||||
config.BridgeFingerprint = arg
|
||||
}
|
||||
transport, err := sf.NewSnowflakeClient(config)
|
||||
if err != nil {
|
||||
conn.Reject()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue