diff --git a/external/github.com/cloudflare/sidh/LICENSE b/external/github.com/cloudflare/sidh/LICENSE index b370b3de7..ea60699d7 100644 --- a/external/github.com/cloudflare/sidh/LICENSE +++ b/external/github.com/cloudflare/sidh/LICENSE @@ -29,7 +29,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ======================================================================== The x64 field arithmetic implementation was derived from the Microsoft Research -SIDH implementation, , available +SIDH implementation, , available under the following license: ======================================================================== diff --git a/external/github.com/cloudflare/sidh/p503/consts.go b/external/github.com/cloudflare/sidh/p503/consts.go index 7b80f05d1..fddf6be62 100644 --- a/external/github.com/cloudflare/sidh/p503/consts.go +++ b/external/github.com/cloudflare/sidh/p503/consts.go @@ -25,7 +25,7 @@ const ( ) // CPU Capabilities. Those flags are referred by assembly code. According to -// https://v2ray.com/core/external/github.com/golang/go/issues/28230, variables referred from the +// https://github.com/golang/go/issues/28230, variables referred from the // assembly must be in the same package. // We declare them variables not constants in order to facilitate testing. var ( diff --git a/external/github.com/cloudflare/sidh/p751/consts.go b/external/github.com/cloudflare/sidh/p751/consts.go index 5ecdf3073..57e49faae 100644 --- a/external/github.com/cloudflare/sidh/p751/consts.go +++ b/external/github.com/cloudflare/sidh/p751/consts.go @@ -25,7 +25,7 @@ const ( ) // CPU Capabilities. Those flags are referred by assembly code. According to -// https://v2ray.com/core/external/github.com/golang/go/issues/28230, variables referred from the +// https://github.com/golang/go/issues/28230, variables referred from the // assembly must be in the same package. // We declare them variables not constants in order to facilitate testing. var ( diff --git a/external/github.com/gorilla/websocket/README.md b/external/github.com/gorilla/websocket/README.md index 76f5ba22b..24696947e 100644 --- a/external/github.com/gorilla/websocket/README.md +++ b/external/github.com/gorilla/websocket/README.md @@ -4,15 +4,15 @@ Gorilla WebSocket is a [Go](http://golang.org/) implementation of the [WebSocket](http://www.rfc-editor.org/rfc/rfc6455.txt) protocol. [![Build Status](https://travis-ci.org/gorilla/websocket.svg?branch=master)](https://travis-ci.org/gorilla/websocket) -[![GoDoc](https://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket?status.svg)](https://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket) +[![GoDoc](https://godoc.org/github.com/gorilla/websocket?status.svg)](https://godoc.org/github.com/gorilla/websocket) ### Documentation -* [API Reference](http://godoc.org/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket) -* [Chat example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/chat) -* [Command example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/command) -* [Client and server example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/echo) -* [File watch example](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/filewatch) +* [API Reference](http://godoc.org/github.com/gorilla/websocket) +* [Chat example](https://github.com/gorilla/websocket/tree/master/examples/chat) +* [Command example](https://github.com/gorilla/websocket/tree/master/examples/command) +* [Client and server example](https://github.com/gorilla/websocket/tree/master/examples/echo) +* [File watch example](https://github.com/gorilla/websocket/tree/master/examples/filewatch) ### Status @@ -22,33 +22,33 @@ package API is stable. ### Installation - go get v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket + go get github.com/gorilla/websocket ### Protocol Compliance The Gorilla WebSocket package passes the server tests in the [Autobahn Test -Suite](http://autobahn.ws/testsuite) using the application in the [examples/autobahn -subdirectory](https://v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorilla/websocket/tree/master/examples/autobahn). +Suite](https://github.com/crossbario/autobahn-testsuite) using the application in the [examples/autobahn +subdirectory](https://github.com/gorilla/websocket/tree/master/examples/autobahn). ### Gorilla WebSocket compared with other packages - + - + - - + + - - + +
v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/v2ray.com/core/external/github.com/gorillagithub.com/gorilla golang.org/x/net
RFC 6455 Features
Passes Autobahn Test SuiteYesNo
Passes Autobahn Test SuiteYesNo
Receive fragmented messageYesNo, see note 1
Send close messageYesNo
Send pings and receive pongsYesNo
Send close messageYesNo
Send pings and receive pongsYesNo
Get the type of a received data messageYesYes, see note 2
Other Features
Compression ExtensionsExperimentalNo
Read message using io.ReaderYesNo, see note 3
Write message using io.WriteCloserYesNo, see note 3
Read message using io.ReaderYesNo, see note 3
Write message using io.WriteCloserYesNo, see note 3
Notes: diff --git a/external/github.com/lucas-clemente/quic-go/Changelog.md b/external/github.com/lucas-clemente/quic-go/Changelog.md index 9ddd0c03d..cbc88e73e 100644 --- a/external/github.com/lucas-clemente/quic-go/Changelog.md +++ b/external/github.com/lucas-clemente/quic-go/Changelog.md @@ -36,8 +36,8 @@ - Add a `quic.Config` option to configure keep-alive - Rename the STK to Cookie - Implement `net.Conn`-style deadlines for streams -- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/v2ray.com/core/external/github.com/lucas-clemente/quic-go) for details. -- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/wiki/Logging) for more details. +- Remove the `tls.Config` from the `quic.Config`. The `tls.Config` must now be passed to the `Dial` and `Listen` functions as a separate parameter. See the [Godoc](https://godoc.org/github.com/lucas-clemente/quic-go) for details. +- Changed the log level environment variable to only accept strings ("DEBUG", "INFO", "ERROR"), see [the wiki](https://github.com/lucas-clemente/quic-go/wiki/Logging) for more details. - Rename the `h2quic.QuicRoundTripper` to `h2quic.RoundTripper` - Changed `h2quic.Server.Serve()` to accept a `net.PacketConn` - Drop support for Go 1.7 and 1.8. diff --git a/external/github.com/lucas-clemente/quic-go/README.md b/external/github.com/lucas-clemente/quic-go/README.md index 9dd4169fd..ae1fa9cd2 100644 --- a/external/github.com/lucas-clemente/quic-go/README.md +++ b/external/github.com/lucas-clemente/quic-go/README.md @@ -2,25 +2,25 @@ -[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/v2ray.com/core/external/github.com/lucas-clemente/quic-go) +[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/lucas-clemente/quic-go) [![Travis Build Status](https://img.shields.io/travis/lucas-clemente/quic-go/master.svg?style=flat-square&label=Travis+build)](https://travis-ci.org/lucas-clemente/quic-go) [![CircleCI Build Status](https://img.shields.io/circleci/project/github/lucas-clemente/quic-go.svg?style=flat-square&label=CircleCI+build)](https://circleci.com/gh/lucas-clemente/quic-go) [![Windows Build Status](https://img.shields.io/appveyor/ci/lucas-clemente/quic-go/master.svg?style=flat-square&label=windows+build)](https://ci.appveyor.com/project/lucas-clemente/quic-go/branch/master) [![Code Coverage](https://img.shields.io/codecov/c/github/lucas-clemente/quic-go/master.svg?style=flat-square)](https://codecov.io/gh/lucas-clemente/quic-go/) -quic-go is an implementation of the [QUIC](https://en.wikipedia.org/wiki/QUIC) protocol in Go. It roughly implements the [IETF QUIC draft](https://v2ray.com/core/external/github.com/quicwg/base-drafts), although we don't fully support any of the draft versions at the moment. +quic-go is an implementation of the [QUIC](https://en.wikipedia.org/wiki/QUIC) protocol in Go. It roughly implements the [IETF QUIC draft](https://github.com/quicwg/base-drafts), although we don't fully support any of the draft versions at the moment. ## Version compatibility Since quic-go is under active development, there's no guarantee that two builds of different commits are interoperable. The QUIC version used in the *master* branch is just a placeholder, and should not be considered stable. -If you want to use quic-go as a library in other projects, please consider using a [tagged release](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/releases). These releases expose [experimental QUIC versions](https://v2ray.com/core/external/github.com/quicwg/base-drafts/wiki/QUIC-Versions), which are guaranteed to be stable. +If you want to use quic-go as a library in other projects, please consider using a [tagged release](https://github.com/lucas-clemente/quic-go/releases). These releases expose [experimental QUIC versions](https://github.com/quicwg/base-drafts/wiki/QUIC-Versions), which are guaranteed to be stable. ## Google QUIC quic-go used to support both the QUIC versions supported by Google Chrome and QUIC as deployed on Google's servers, as well as IETF QUIC. Due to the divergence of the two protocols, we decided to not support both versions any more. -The *master* branch **only** supports IETF QUIC. For Google QUIC support, please refer to the [gquic branch](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/tree/gquic). +The *master* branch **only** supports IETF QUIC. For Google QUIC support, please refer to the [gquic branch](https://github.com/lucas-clemente/quic-go/tree/gquic). ## Guides @@ -65,4 +65,4 @@ http.Client{ ## Contributing -We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://v2ray.com/core/external/github.com/lucas-clemente/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment. +We are always happy to welcome new contributors! We have a number of self-contained issues that are suitable for first-time contributors, they are tagged with [help wanted](https://github.com/lucas-clemente/quic-go/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22). If you have any questions, please feel free to reach out by opening an issue or leaving a comment. diff --git a/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go index bf9b88f88..bb74f4ef9 100644 --- a/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/ackhandler/packet_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package ackhandler diff --git a/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh b/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh index 5f91dfc90..a0f9112b7 100755 --- a/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh +++ b/external/github.com/lucas-clemente/quic-go/internal/mockgen_internal.sh @@ -7,13 +7,13 @@ # Afterwards, it corrects the import paths (replaces internalpackage back to internal). TEMP_DIR=$(mktemp -d) -mkdir -p $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internalpackage +mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage # uppercase the name of the interface (only has an effect for private interfaces) INTERFACE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${4:0:1})${4:1}" PACKAGE_NAME=`echo $3 | sed 's/.*\///'` -cp -r $GOPATH/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internal/* $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/internalpackage +cp -r $GOPATH/src/github.com/lucas-clemente/quic-go/internal/* $TEMP_DIR/src/github.com/lucas-clemente/quic-go/internalpackage find $TEMP_DIR -type f -name "*.go" -exec sed -i '' 's/internal/internalpackage/g' {} \; export GOPATH="$TEMP_DIR:$GOPATH" diff --git a/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go b/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go index 32003eb7a..3406cfa46 100644 --- a/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go +++ b/external/github.com/lucas-clemente/quic-go/internal/protocol/version.go @@ -10,7 +10,7 @@ import ( // VersionNumber is a version number as int type VersionNumber uint32 -// gQUIC version range as defined in the wiki: https://v2ray.com/core/external/github.com/quicwg/base-drafts/wiki/QUIC-Versions +// gQUIC version range as defined in the wiki: https://github.com/quicwg/base-drafts/wiki/QUIC-Versions const ( gquicVersion0 = 0x51303030 maxGquicVersion = 0x51303439 diff --git a/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go index 9f92f72d7..096023ef2 100644 --- a/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/byteinterval_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package utils diff --git a/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md index 52470baff..15b46dce5 100644 --- a/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/linkedlist/README.md @@ -2,7 +2,7 @@ This is the Go standard library implementation of a linked list (https://golang.org/src/container/list/list.go), modified such that genny -(https://v2ray.com/core/external/github.com/cheekybits/genny) can be used to generate a typed linked +(https://github.com/cheekybits/genny) can be used to generate a typed linked list. To generate, run diff --git a/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go b/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go index 4fc9723e6..b461e85a9 100644 --- a/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go +++ b/external/github.com/lucas-clemente/quic-go/internal/utils/packetinterval_linkedlist.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package utils diff --git a/external/github.com/lucas-clemente/quic-go/mockgen.go b/external/github.com/lucas-clemente/quic-go/mockgen.go index 57b87ef8c..1a882c358 100644 --- a/external/github.com/lucas-clemente/quic-go/mockgen.go +++ b/external/github.com/lucas-clemente/quic-go/mockgen.go @@ -1,21 +1,21 @@ package quic -//go:generate sh -c "./mockgen_private.sh quic mock_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamI" -//go:generate sh -c "./mockgen_private.sh quic mock_crypto_stream_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go cryptoStream" -//go:generate sh -c "./mockgen_private.sh quic mock_receive_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go receiveStreamI" -//go:generate sh -c "./mockgen_private.sh quic mock_send_stream_internal_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sendStreamI" -//go:generate sh -c "./mockgen_private.sh quic mock_stream_sender_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamSender" -//go:generate sh -c "./mockgen_private.sh quic mock_stream_getter_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamGetter" -//go:generate sh -c "./mockgen_private.sh quic mock_crypto_data_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go cryptoDataHandler" -//go:generate sh -c "./mockgen_private.sh quic mock_frame_source_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go frameSource" -//go:generate sh -c "./mockgen_private.sh quic mock_ack_frame_source_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go ackFrameSource" -//go:generate sh -c "./mockgen_private.sh quic mock_stream_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go streamManager" -//go:generate sh -c "./mockgen_private.sh quic mock_sealing_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sealingManager" -//go:generate sh -c "./mockgen_private.sh quic mock_unpacker_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go unpacker" -//go:generate sh -c "./mockgen_private.sh quic mock_packer_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packer" -//go:generate sh -c "./mockgen_private.sh quic mock_session_runner_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go sessionRunner" -//go:generate sh -c "./mockgen_private.sh quic mock_quic_session_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go quicSession" -//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packetHandler" -//go:generate sh -c "./mockgen_private.sh quic mock_unknown_packet_handler_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go unknownPacketHandler" -//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_manager_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go packetHandlerManager" -//go:generate sh -c "./mockgen_private.sh quic mock_multiplexer_test.go v2ray.com/core/external/github.com/lucas-clemente/quic-go multiplexer" +//go:generate sh -c "./mockgen_private.sh quic mock_stream_internal_test.go github.com/lucas-clemente/quic-go streamI" +//go:generate sh -c "./mockgen_private.sh quic mock_crypto_stream_test.go github.com/lucas-clemente/quic-go cryptoStream" +//go:generate sh -c "./mockgen_private.sh quic mock_receive_stream_internal_test.go github.com/lucas-clemente/quic-go receiveStreamI" +//go:generate sh -c "./mockgen_private.sh quic mock_send_stream_internal_test.go github.com/lucas-clemente/quic-go sendStreamI" +//go:generate sh -c "./mockgen_private.sh quic mock_stream_sender_test.go github.com/lucas-clemente/quic-go streamSender" +//go:generate sh -c "./mockgen_private.sh quic mock_stream_getter_test.go github.com/lucas-clemente/quic-go streamGetter" +//go:generate sh -c "./mockgen_private.sh quic mock_crypto_data_handler_test.go github.com/lucas-clemente/quic-go cryptoDataHandler" +//go:generate sh -c "./mockgen_private.sh quic mock_frame_source_test.go github.com/lucas-clemente/quic-go frameSource" +//go:generate sh -c "./mockgen_private.sh quic mock_ack_frame_source_test.go github.com/lucas-clemente/quic-go ackFrameSource" +//go:generate sh -c "./mockgen_private.sh quic mock_stream_manager_test.go github.com/lucas-clemente/quic-go streamManager" +//go:generate sh -c "./mockgen_private.sh quic mock_sealing_manager_test.go github.com/lucas-clemente/quic-go sealingManager" +//go:generate sh -c "./mockgen_private.sh quic mock_unpacker_test.go github.com/lucas-clemente/quic-go unpacker" +//go:generate sh -c "./mockgen_private.sh quic mock_packer_test.go github.com/lucas-clemente/quic-go packer" +//go:generate sh -c "./mockgen_private.sh quic mock_session_runner_test.go github.com/lucas-clemente/quic-go sessionRunner" +//go:generate sh -c "./mockgen_private.sh quic mock_quic_session_test.go github.com/lucas-clemente/quic-go quicSession" +//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_test.go github.com/lucas-clemente/quic-go packetHandler" +//go:generate sh -c "./mockgen_private.sh quic mock_unknown_packet_handler_test.go github.com/lucas-clemente/quic-go unknownPacketHandler" +//go:generate sh -c "./mockgen_private.sh quic mock_packet_handler_manager_test.go github.com/lucas-clemente/quic-go packetHandlerManager" +//go:generate sh -c "./mockgen_private.sh quic mock_multiplexer_test.go github.com/lucas-clemente/quic-go multiplexer" diff --git a/external/github.com/lucas-clemente/quic-go/mockgen_private.sh b/external/github.com/lucas-clemente/quic-go/mockgen_private.sh index 63657ada4..0ba5f64ef 100755 --- a/external/github.com/lucas-clemente/quic-go/mockgen_private.sh +++ b/external/github.com/lucas-clemente/quic-go/mockgen_private.sh @@ -5,23 +5,23 @@ # It then creates a mock for this public (alias) type. TEMP_DIR=$(mktemp -d) -mkdir -p $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/ +mkdir -p $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ # uppercase the name of the interface INTERFACE_NAME="$(tr '[:lower:]' '[:upper:]' <<< ${4:0:1})${4:1}" # copy all .go files to a temporary directory -rsync -r --exclude 'vendor' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/ +rsync -r --exclude 'vendor' --include='*.go' --include '*/' --exclude '*' $GOPATH/src/github.com/lucas-clemente/quic-go/ $TEMP_DIR/src/github.com/lucas-clemente/quic-go/ # create a public alias for the interface, so that mockgen can process it -echo -e "package $1\n" > $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/mockgen_interface.go -echo "type $INTERFACE_NAME = $4" >> $TEMP_DIR/src/v2ray.com/core/external/github.com/lucas-clemente/quic-go/mockgen_interface.go +echo -e "package $1\n" > $TEMP_DIR/src/github.com/lucas-clemente/quic-go/mockgen_interface.go +echo "type $INTERFACE_NAME = $4" >> $TEMP_DIR/src/github.com/lucas-clemente/quic-go/mockgen_interface.go export GOPATH="$TEMP_DIR:$GOPATH" mockgen -package $1 -self_package $1 -destination $2 $3 $INTERFACE_NAME -# mockgen imports quic-go as 'import quic_go v2ray.com/core/external/github.com/lucas_clemente/quic-go' +# mockgen imports quic-go as 'import quic_go github.com/lucas_clemente/quic-go' sed -i '' 's/quic_go.//g' $2 goimports -w $2 diff --git a/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go index 32fea62cf..74880798d 100644 --- a/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_bidi.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package quic diff --git a/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go index 37aa8d48f..28a0b0ddc 100644 --- a/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_incoming_uni.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package quic diff --git a/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go index 8cafcc457..ac602190a 100644 --- a/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_bidi.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package quic diff --git a/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go index 63f9038ce..a6f1feb40 100644 --- a/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go +++ b/external/github.com/lucas-clemente/quic-go/streams_map_outgoing_uni.go @@ -1,6 +1,6 @@ // This file was automatically generated by genny. // Any changes will be lost if this file is regenerated. -// see https://v2ray.com/core/external/github.com/cheekybits/genny +// see https://github.com/cheekybits/genny package quic diff --git a/external/github.com/marten-seemann/qtls/README.md b/external/github.com/marten-seemann/qtls/README.md index deb94b356..be5c08c1d 100644 --- a/external/github.com/marten-seemann/qtls/README.md +++ b/external/github.com/marten-seemann/qtls/README.md @@ -60,7 +60,7 @@ Similar dependencies can be found on any UNIX based system/distribution. There are number of things that need to be setup before running tests. Most important step is to copy ``go env GOROOT`` directory to ``_dev`` and swap TLS implementation and recompile GO. Then for testing we use go implementation from ``_dev/GOROOT``. ``` -git clone https://v2ray.com/core/external/github.com/cloudflare/tls-tris.git +git clone https://github.com/cloudflare/tls-tris.git cd tls-tris; cp _dev/utils/pre-commit .git/hooks/ make -f _dev/Makefile build-all ``` diff --git a/external/update-deps.sh b/external/update-deps.sh index 355558063..5007ce54b 100755 --- a/external/update-deps.sh +++ b/external/update-deps.sh @@ -33,6 +33,6 @@ rm "./github.com/gorilla/websocket/x_net_proxy.go" find . -name "*_test.go" -delete find . -name "*.yml" -delete -find . -name "*.go" -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#github\.com#v2ray\.com/core/external/github\.com#g' +find . -name "*.go" -type f -print0 | LC_ALL=C xargs -0 sed -i '' 's#\"github\.com#\"v2ray\.com/core/external/github\.com#g' popd