From 86f64c031a99552dd5f2635f5aae390e1d3511d6 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sun, 13 Feb 2022 14:47:42 +0000 Subject: [PATCH] Add UDP VLite protobuf config --- proxy/vlite/inbound/config.proto | 14 ++++++++++++++ proxy/vlite/outbound/config.proto | 19 +++++++++++++++++++ proxy/vlite/vlite.go | 4 ++++ 3 files changed, 37 insertions(+) create mode 100644 proxy/vlite/inbound/config.proto create mode 100644 proxy/vlite/outbound/config.proto create mode 100644 proxy/vlite/vlite.go diff --git a/proxy/vlite/inbound/config.proto b/proxy/vlite/inbound/config.proto new file mode 100644 index 000000000..fb45e0af1 --- /dev/null +++ b/proxy/vlite/inbound/config.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package v2ray.core.proxy.vlite.inbound; +option csharp_namespace = "V2Ray.Core.Proxy.Vlite.Inbound"; +option go_package = "github.com/v2fly/v2ray-core/v5/proxy/vlite/inbound"; +option java_package = "com.v2ray.core.proxy.vlite.inbound"; +option java_multiple_files = true; + +message UDPProtocolConfig { + string password = 3; + bool scramble_packet = 4; + bool enable_fec = 5; + bool enable_stabilization = 6; +} \ No newline at end of file diff --git a/proxy/vlite/outbound/config.proto b/proxy/vlite/outbound/config.proto new file mode 100644 index 000000000..94c21d8d2 --- /dev/null +++ b/proxy/vlite/outbound/config.proto @@ -0,0 +1,19 @@ +syntax = "proto3"; + +package v2ray.core.proxy.vlite.outbound; +option csharp_namespace = "V2Ray.Core.Proxy.Vlite.Outbound"; +option go_package = "github.com/v2fly/v2ray-core/v5/proxy/vlite/outbound"; +option java_package = "com.v2ray.core.proxy.vlite.outbound"; +option java_multiple_files = true; + +import "common/net/address.proto"; + +message UDPProtocolConfig { + v2ray.core.common.net.IPOrDomain address = 1; + uint32 port = 2; + + string password = 3; + bool scramble_packet = 4; + bool enable_fec = 5; + bool enable_stabilization = 6; +} \ No newline at end of file diff --git a/proxy/vlite/vlite.go b/proxy/vlite/vlite.go new file mode 100644 index 000000000..cd9c1411c --- /dev/null +++ b/proxy/vlite/vlite.go @@ -0,0 +1,4 @@ +// Package vlite contains the integration code for VLite protocol variety +// +// VLite is currently an experimental protocol, its stability is not guaranteed. +package vlite