mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00:00
Update proto file and fix protoc version parsing
The new protoc cli return version v23.1, so we parse the file version v4.23.1 without "4."
This commit is contained in:
parent
c9f517108c
commit
d11d72be6c
73 changed files with 238 additions and 205 deletions
|
@ -1,7 +1,7 @@
|
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.1
|
||||
// protoc v3.12.4
|
||||
// protoc-gen-go v1.30.0
|
||||
// protoc v4.23.1
|
||||
// source: transport/internet/config.proto
|
||||
|
||||
package internet
|
||||
|
@ -191,7 +191,7 @@ type TransportConfig struct {
|
|||
// Type of network that this settings supports.
|
||||
// Deprecated. Use the string form below.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
// Deprecated: Marked as deprecated in transport/internet/config.proto.
|
||||
Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.transport.internet.TransportProtocol" json:"protocol,omitempty"`
|
||||
// Type of network that this settings supports.
|
||||
ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
|
||||
|
@ -231,7 +231,7 @@ func (*TransportConfig) Descriptor() ([]byte, []int) {
|
|||
return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
// Deprecated: Marked as deprecated in transport/internet/config.proto.
|
||||
func (x *TransportConfig) GetProtocol() TransportProtocol {
|
||||
if x != nil {
|
||||
return x.Protocol
|
||||
|
@ -260,7 +260,7 @@ type StreamConfig struct {
|
|||
|
||||
// Effective network. Deprecated. Use the string form below.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
// Deprecated: Marked as deprecated in transport/internet/config.proto.
|
||||
Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.transport.internet.TransportProtocol" json:"protocol,omitempty"`
|
||||
// Effective network.
|
||||
ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
|
||||
|
@ -304,7 +304,7 @@ func (*StreamConfig) Descriptor() ([]byte, []int) {
|
|||
return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
// Deprecated: Do not use.
|
||||
// Deprecated: Marked as deprecated in transport/internet/config.proto.
|
||||
func (x *StreamConfig) GetProtocol() TransportProtocol {
|
||||
if x != nil {
|
||||
return x.Protocol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue