1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 14:35:37 -05:00

accommodate protobuf compiler change

This commit is contained in:
Darien Raymond
2016-12-23 12:42:25 +01:00
parent d9196b4217
commit a4dfca0ef7
33 changed files with 679 additions and 80 deletions

View File

@@ -38,6 +38,13 @@ func (m *ConnectionReuse) String() string { return proto.CompactTextS
func (*ConnectionReuse) ProtoMessage() {}
func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ConnectionReuse) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
type Config struct {
// Whether or not to reuse WebSocket connections.
ConnectionReuse *ConnectionReuse `protobuf:"bytes,1,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
@@ -57,6 +64,13 @@ func (m *Config) GetConnectionReuse() *ConnectionReuse {
return nil
}
func (m *Config) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
func init() {
proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.websocket.ConnectionReuse")
proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.websocket.Config")