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 19, 2020
1 parent 7b8092c commit 404eac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
1 change: 0 additions & 1 deletion pkg/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ func findAnyHostInLocalAS(ctx context.Context, sciondConn sciond.Connector) (net
return bsAddr.IP, nil
}


// Duplicated from "github.com/scionproto/scion/go/lib/integration", but do not swallow error
func (s *serverStop) Close() error {
s.cancel()
Expand Down

0 comments on commit 404eac6

Please sign in to comment.