mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
refactor message boundary constrains
This commit is contained in:
parent
33b3891648
commit
1ba58c864d
6 changed files with 10 additions and 27 deletions
|
@ -344,8 +344,7 @@ func newSession(snowflakes SnowflakeCollector) (net.PacketConn, *smux.Session, e
|
|||
log.Println("---- Handler: snowflake assigned ----")
|
||||
|
||||
packetConnWrapper := newPacketConnWrapper(dummyAddr{}, dummyAddr{},
|
||||
packetpadding.NewPaddableConnection(
|
||||
ConfirmsReadWriteCloserPreservesMessageBoundary(conn),
|
||||
packetpadding.NewPaddableConnection(conn,
|
||||
packetpadding.New()))
|
||||
|
||||
return packetConnWrapper, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue