config.go 237 B

1234567891011121314
  1. package transport
  2. // Config for V2Ray transport layer.
  3. type Config struct {
  4. ConnectionReuse bool
  5. }
  6. // Apply applies this Config.
  7. func (this *Config) Apply() error {
  8. if this.ConnectionReuse {
  9. connectionReuse = true
  10. }
  11. return nil
  12. }