mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
aaa9e788e7
* introduce grpc transport structure * fix package name inconsistency * grpc gun transport dialer and listener * add selective build tag * add grpc:gun listener * add grpc:gun config * add generated files * various bug fix for gun:grpc transport * Cache dialed connections * grpc:gun Use V2Ray Managed Dial function * Update destination.pb.go * Update gun.go * GunSettings -> GunConfig * gu -> gs * add grpc alias Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com> Co-authored-by: kslr <kslrwang@gmail.com>
15 lines
277 B
Go
15 lines
277 B
Go
package grpc
|
|
|
|
import (
|
|
"github.com/v2fly/v2ray-core/v4/common"
|
|
"github.com/v2fly/v2ray-core/v4/transport/internet"
|
|
)
|
|
|
|
const protocolName = "gun"
|
|
|
|
func init() {
|
|
common.Must(internet.RegisterProtocolConfigCreator(protocolName, func() interface{} {
|
|
return new(Config)
|
|
}))
|
|
}
|