Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p-quic-transport
Commits
bd68e9bc
Unverified
Commit
bd68e9bc
authored
Jun 12, 2018
by
Marten Seemann
Committed by
GitHub
Jun 12, 2018
Browse files
Merge pull request #7 from libp2p/disable-source-address-validation
disable source address validation
parents
d57690fe
17e2919a
Changes
1
Hide whitespace changes
Inline
Side-by-side
transport.go
View file @
bd68e9bc
...
...
@@ -5,6 +5,7 @@ import (
"crypto/tls"
"crypto/x509"
"errors"
"net"
ic
"github.com/libp2p/go-libp2p-crypto"
peer
"github.com/libp2p/go-libp2p-peer"
...
...
@@ -19,6 +20,10 @@ var quicConfig = &quic.Config{
MaxReceiveStreamFlowControlWindow
:
3
*
(
1
<<
20
),
// 3 MB
MaxReceiveConnectionFlowControlWindow
:
4.5
*
(
1
<<
20
),
// 4.5 MB
Versions
:
[]
quic
.
VersionNumber
{
101
},
AcceptCookie
:
func
(
clientAddr
net
.
Addr
,
cookie
*
quic
.
Cookie
)
bool
{
// TODO(#6): require source address validation when under load
return
true
},
}
var
quicDialAddr
=
quic
.
DialAddr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment