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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user