Skip to content

Commit

Permalink
Add workaround to not trigger SplitHostPort in quic-go
Browse files Browse the repository at this point in the history
  • Loading branch information
FR4NK-W committed May 18, 2020
1 parent 7b8092c commit 38d3877
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netcat/modes/quic-modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func DoDialQUIC(remoteAddr string) io.ReadWriteCloser {
&tls.Config{
InsecureSkipVerify: true,
NextProtos: []string{nextProto},
// TODO: remove the hack below, and fix anywhere between appquic.Dial and quic-go/client.go newClient
ServerName: "example.com", // this is a stupid workaround to not hit SplitHostPort
// on a SCION address in quic-go newClient
},
&quic.Config{KeepAlive: true},
)
Expand Down

0 comments on commit 38d3877

Please sign in to comment.