From 057e271588939a6c61147bcd86625a5c53f87844 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 1 Dec 2018 17:39:51 +0100 Subject: [PATCH] update proto lib --- app/commander/config.pb.go | 2 +- app/dispatcher/config.pb.go | 2 +- app/dns/config.pb.go | 2 +- app/log/command/config.pb.go | 2 +- app/log/config.pb.go | 2 +- app/policy/config.pb.go | 2 +- app/proxyman/command/command.pb.go | 2 +- app/proxyman/config.pb.go | 2 +- app/reverse/config.pb.go | 2 +- app/stats/command/command.pb.go | 2 +- app/stats/config.pb.go | 2 +- common/log/log.pb.go | 2 +- common/net/address.pb.go | 66 ++----------------- common/net/destination.pb.go | 2 +- common/net/network.pb.go | 2 +- common/net/port.pb.go | 2 +- common/protocol/headers.pb.go | 2 +- common/protocol/server_spec.pb.go | 2 +- common/protocol/user.pb.go | 2 +- common/serial/typed_message.pb.go | 2 +- config.pb.go | 2 +- proxy/blackhole/config.pb.go | 2 +- proxy/dokodemo/config.pb.go | 2 +- proxy/freedom/config.pb.go | 2 +- proxy/http/config.pb.go | 2 +- proxy/mtproto/config.pb.go | 2 +- proxy/shadowsocks/config.pb.go | 2 +- proxy/socks/config.pb.go | 2 +- proxy/vmess/account.pb.go | 2 +- proxy/vmess/inbound/config.pb.go | 2 +- proxy/vmess/outbound/config.pb.go | 2 +- transport/config.pb.go | 2 +- transport/internet/config.pb.go | 2 +- transport/internet/domainsocket/config.pb.go | 2 +- transport/internet/headers/http/config.pb.go | 2 +- transport/internet/headers/noop/config.pb.go | 2 +- transport/internet/headers/srtp/config.pb.go | 2 +- transport/internet/headers/tls/config.pb.go | 2 +- transport/internet/headers/utp/config.pb.go | 2 +- .../internet/headers/wechat/config.pb.go | 2 +- .../internet/headers/wireguard/config.pb.go | 2 +- transport/internet/http/config.pb.go | 2 +- transport/internet/kcp/config.pb.go | 2 +- transport/internet/quic/config.pb.go | 2 +- transport/internet/tcp/config.pb.go | 2 +- transport/internet/tls/config.pb.go | 2 +- transport/internet/udp/config.pb.go | 2 +- transport/internet/websocket/config.pb.go | 2 +- 48 files changed, 51 insertions(+), 109 deletions(-) diff --git a/app/commander/config.pb.go b/app/commander/config.pb.go index 23abd70e0..8866190ad 100644 --- a/app/commander/config.pb.go +++ b/app/commander/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Config is the settings for Commander. type Config struct { diff --git a/app/dispatcher/config.pb.go b/app/dispatcher/config.pb.go index 9beb885c2..2fdf6ecac 100644 --- a/app/dispatcher/config.pb.go +++ b/app/dispatcher/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SessionConfig struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/app/dns/config.pb.go b/app/dns/config.pb.go index 42a462fe6..3be30dd66 100644 --- a/app/dns/config.pb.go +++ b/app/dns/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DomainMatchingType int32 diff --git a/app/log/command/config.pb.go b/app/log/command/config.pb.go index d4d39e172..9627737f8 100644 --- a/app/log/command/config.pb.go +++ b/app/log/command/config.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/app/log/config.pb.go b/app/log/config.pb.go index 46e14bb07..477a1e6ed 100644 --- a/app/log/config.pb.go +++ b/app/log/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type LogType int32 diff --git a/app/policy/config.pb.go b/app/policy/config.pb.go index 9e40183d9..a7bd53628 100644 --- a/app/policy/config.pb.go +++ b/app/policy/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Second struct { Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` diff --git a/app/proxyman/command/command.pb.go b/app/proxyman/command/command.pb.go index 89147c72f..71203bb25 100644 --- a/app/proxyman/command/command.pb.go +++ b/app/proxyman/command/command.pb.go @@ -20,7 +20,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type AddUserOperation struct { User *protocol.User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` diff --git a/app/proxyman/config.pb.go b/app/proxyman/config.pb.go index d1569f316..a53efc8ef 100644 --- a/app/proxyman/config.pb.go +++ b/app/proxyman/config.pb.go @@ -18,7 +18,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type KnownProtocols int32 diff --git a/app/reverse/config.pb.go b/app/reverse/config.pb.go index 91d31e187..bdd604bc5 100644 --- a/app/reverse/config.pb.go +++ b/app/reverse/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Control_State int32 diff --git a/app/stats/command/command.pb.go b/app/stats/command/command.pb.go index 735dbf4b6..b563adcb7 100644 --- a/app/stats/command/command.pb.go +++ b/app/stats/command/command.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type GetStatsRequest struct { // Name of the stat counter. diff --git a/app/stats/config.pb.go b/app/stats/config.pb.go index f47e8571a..c471d58d6 100644 --- a/app/stats/config.pb.go +++ b/app/stats/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/common/log/log.pb.go b/common/log/log.pb.go index db0850903..475daae65 100644 --- a/common/log/log.pb.go +++ b/common/log/log.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Severity int32 diff --git a/common/net/address.pb.go b/common/net/address.pb.go index 6169ce6df..7b86aa043 100644 --- a/common/net/address.pb.go +++ b/common/net/address.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Address of a network host. It may be either an IP address or a domain address. type IPOrDomain struct { @@ -90,72 +90,14 @@ func (m *IPOrDomain) GetDomain() string { return "" } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*IPOrDomain) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _IPOrDomain_OneofMarshaler, _IPOrDomain_OneofUnmarshaler, _IPOrDomain_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*IPOrDomain) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*IPOrDomain_Ip)(nil), (*IPOrDomain_Domain)(nil), } } -func _IPOrDomain_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*IPOrDomain) - // address - switch x := m.Address.(type) { - case *IPOrDomain_Ip: - b.EncodeVarint(1<<3 | proto.WireBytes) - b.EncodeRawBytes(x.Ip) - case *IPOrDomain_Domain: - b.EncodeVarint(2<<3 | proto.WireBytes) - b.EncodeStringBytes(x.Domain) - case nil: - default: - return fmt.Errorf("IPOrDomain.Address has unexpected type %T", x) - } - return nil -} - -func _IPOrDomain_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*IPOrDomain) - switch tag { - case 1: // address.ip - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeRawBytes(true) - m.Address = &IPOrDomain_Ip{x} - return true, err - case 2: // address.domain - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Address = &IPOrDomain_Domain{x} - return true, err - default: - return false, nil - } -} - -func _IPOrDomain_OneofSizer(msg proto.Message) (n int) { - m := msg.(*IPOrDomain) - // address - switch x := m.Address.(type) { - case *IPOrDomain_Ip: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Ip))) - n += len(x.Ip) - case *IPOrDomain_Domain: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Domain))) - n += len(x.Domain) - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - func init() { proto.RegisterType((*IPOrDomain)(nil), "v2ray.core.common.net.IPOrDomain") } diff --git a/common/net/destination.pb.go b/common/net/destination.pb.go index 0ed6ef71f..0d99292b6 100644 --- a/common/net/destination.pb.go +++ b/common/net/destination.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Endpoint of a network connection. type Endpoint struct { diff --git a/common/net/network.pb.go b/common/net/network.pb.go index 85bbd714a..9c0415ef3 100644 --- a/common/net/network.pb.go +++ b/common/net/network.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Network int32 diff --git a/common/net/port.pb.go b/common/net/port.pb.go index a10472868..a82214dbc 100644 --- a/common/net/port.pb.go +++ b/common/net/port.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // PortRange represents a range of ports. type PortRange struct { diff --git a/common/protocol/headers.pb.go b/common/protocol/headers.pb.go index 0494b00d7..32588588b 100644 --- a/common/protocol/headers.pb.go +++ b/common/protocol/headers.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type SecurityType int32 diff --git a/common/protocol/server_spec.pb.go b/common/protocol/server_spec.pb.go index cdae76bfd..941abc4ef 100644 --- a/common/protocol/server_spec.pb.go +++ b/common/protocol/server_spec.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type ServerEndpoint struct { Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` diff --git a/common/protocol/user.pb.go b/common/protocol/user.pb.go index a4d97a302..f48a99ab6 100644 --- a/common/protocol/user.pb.go +++ b/common/protocol/user.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // User is a generic user for all procotols. type User struct { diff --git a/common/serial/typed_message.pb.go b/common/serial/typed_message.pb.go index f6b6c1927..a7f16c4a1 100644 --- a/common/serial/typed_message.pb.go +++ b/common/serial/typed_message.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // TypedMessage is a serialized proto message along with its type name. type TypedMessage struct { diff --git a/config.pb.go b/config.pb.go index 6c9dae8e3..81666a857 100644 --- a/config.pb.go +++ b/config.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Config is the master config of V2Ray. V2Ray takes this config as input and functions accordingly. type Config struct { diff --git a/proxy/blackhole/config.pb.go b/proxy/blackhole/config.pb.go index 39b657a0f..6d9a82b19 100644 --- a/proxy/blackhole/config.pb.go +++ b/proxy/blackhole/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type NoneResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/proxy/dokodemo/config.pb.go b/proxy/dokodemo/config.pb.go index 97ad0cb97..f4fd588e0 100644 --- a/proxy/dokodemo/config.pb.go +++ b/proxy/dokodemo/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` diff --git a/proxy/freedom/config.pb.go b/proxy/freedom/config.pb.go index 550b5701d..82b0effb0 100644 --- a/proxy/freedom/config.pb.go +++ b/proxy/freedom/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config_DomainStrategy int32 diff --git a/proxy/http/config.pb.go b/proxy/http/config.pb.go index 75c77f2ff..691aa6f1a 100644 --- a/proxy/http/config.pb.go +++ b/proxy/http/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Config for HTTP proxy server. type ServerConfig struct { diff --git a/proxy/mtproto/config.pb.go b/proxy/mtproto/config.pb.go index b82cb534d..5838dea1d 100644 --- a/proxy/mtproto/config.pb.go +++ b/proxy/mtproto/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Account struct { Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` diff --git a/proxy/shadowsocks/config.pb.go b/proxy/shadowsocks/config.pb.go index 28eef5b07..6b46dcbed 100644 --- a/proxy/shadowsocks/config.pb.go +++ b/proxy/shadowsocks/config.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type CipherType int32 diff --git a/proxy/socks/config.pb.go b/proxy/socks/config.pb.go index f3226c2c0..37aaf7379 100644 --- a/proxy/socks/config.pb.go +++ b/proxy/socks/config.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // AuthType is the authentication type of Socks proxy. type AuthType int32 diff --git a/proxy/vmess/account.pb.go b/proxy/vmess/account.pb.go index c5bd5cfbf..74df8e684 100755 --- a/proxy/vmess/account.pb.go +++ b/proxy/vmess/account.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Account struct { // ID of the account, in the form of a UUID, e.g., "66ad4540-b58c-4ad2-9926-ea63445a9b57". diff --git a/proxy/vmess/inbound/config.pb.go b/proxy/vmess/inbound/config.pb.go index 30fc08dfe..e5e4e6bac 100644 --- a/proxy/vmess/inbound/config.pb.go +++ b/proxy/vmess/inbound/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type DetourConfig struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` diff --git a/proxy/vmess/outbound/config.pb.go b/proxy/vmess/outbound/config.pb.go index 180e282b6..15e2d1d09 100644 --- a/proxy/vmess/outbound/config.pb.go +++ b/proxy/vmess/outbound/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Receiver []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=Receiver,proto3" json:"Receiver,omitempty"` diff --git a/transport/config.pb.go b/transport/config.pb.go index 08bf50392..97351b99a 100644 --- a/transport/config.pb.go +++ b/transport/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Global transport settings. This affects all type of connections that go through V2Ray. // Deprecated. Use each settings in StreamConfig. diff --git a/transport/internet/config.pb.go b/transport/internet/config.pb.go index 4ddef4899..0281a9d7a 100644 --- a/transport/internet/config.pb.go +++ b/transport/internet/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type TransportProtocol int32 diff --git a/transport/internet/domainsocket/config.pb.go b/transport/internet/domainsocket/config.pb.go index 9b82c0455..6930d5cf2 100644 --- a/transport/internet/domainsocket/config.pb.go +++ b/transport/internet/domainsocket/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { // Path of the domain socket. This overrides the IP/Port parameter from upstream caller. diff --git a/transport/internet/headers/http/config.pb.go b/transport/internet/headers/http/config.pb.go index ba25497d3..dc05ef41a 100644 --- a/transport/internet/headers/http/config.pb.go +++ b/transport/internet/headers/http/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Header struct { // "Accept", "Cookie", etc diff --git a/transport/internet/headers/noop/config.pb.go b/transport/internet/headers/noop/config.pb.go index 178f410a4..0a3997f7d 100644 --- a/transport/internet/headers/noop/config.pb.go +++ b/transport/internet/headers/noop/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/transport/internet/headers/srtp/config.pb.go b/transport/internet/headers/srtp/config.pb.go index a516402f3..13f7bb8ab 100644 --- a/transport/internet/headers/srtp/config.pb.go +++ b/transport/internet/headers/srtp/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` diff --git a/transport/internet/headers/tls/config.pb.go b/transport/internet/headers/tls/config.pb.go index 5aad84356..d4fbbeaa1 100644 --- a/transport/internet/headers/tls/config.pb.go +++ b/transport/internet/headers/tls/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type PacketConfig struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/transport/internet/headers/utp/config.pb.go b/transport/internet/headers/utp/config.pb.go index bafc7daf7..9aa125cb7 100644 --- a/transport/internet/headers/utp/config.pb.go +++ b/transport/internet/headers/utp/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` diff --git a/transport/internet/headers/wechat/config.pb.go b/transport/internet/headers/wechat/config.pb.go index 359fa95a2..1cfcc1900 100644 --- a/transport/internet/headers/wechat/config.pb.go +++ b/transport/internet/headers/wechat/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type VideoConfig struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/transport/internet/headers/wireguard/config.pb.go b/transport/internet/headers/wireguard/config.pb.go index eacd01b47..f5fe72205 100644 --- a/transport/internet/headers/wireguard/config.pb.go +++ b/transport/internet/headers/wireguard/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type WireguardConfig struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/transport/internet/http/config.pb.go b/transport/internet/http/config.pb.go index 1ccacdef5..78627820a 100644 --- a/transport/internet/http/config.pb.go +++ b/transport/internet/http/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Host []string `protobuf:"bytes,1,rep,name=host,proto3" json:"host,omitempty"` diff --git a/transport/internet/kcp/config.pb.go b/transport/internet/kcp/config.pb.go index 05e4214d6..1cc3854e9 100644 --- a/transport/internet/kcp/config.pb.go +++ b/transport/internet/kcp/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package // Maximum Transmission Unit, in bytes. type MTU struct { diff --git a/transport/internet/quic/config.pb.go b/transport/internet/quic/config.pb.go index 7486dfb1b..7bc45d7a0 100644 --- a/transport/internet/quic/config.pb.go +++ b/transport/internet/quic/config.pb.go @@ -17,7 +17,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` diff --git a/transport/internet/tcp/config.pb.go b/transport/internet/tcp/config.pb.go index d22da70c6..1b4eb90c8 100644 --- a/transport/internet/tcp/config.pb.go +++ b/transport/internet/tcp/config.pb.go @@ -16,7 +16,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { HeaderSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=header_settings,json=headerSettings,proto3" json:"header_settings,omitempty"` diff --git a/transport/internet/tls/config.pb.go b/transport/internet/tls/config.pb.go index 2274341e4..76d81cefd 100644 --- a/transport/internet/tls/config.pb.go +++ b/transport/internet/tls/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Certificate_Usage int32 diff --git a/transport/internet/udp/config.pb.go b/transport/internet/udp/config.pb.go index 1819f0f2b..97b18d63b 100644 --- a/transport/internet/udp/config.pb.go +++ b/transport/internet/udp/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Config struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` diff --git a/transport/internet/websocket/config.pb.go b/transport/internet/websocket/config.pb.go index dd1fc2d49..ebd51d65a 100644 --- a/transport/internet/websocket/config.pb.go +++ b/transport/internet/websocket/config.pb.go @@ -15,7 +15,7 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type Header struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`