config.proto 589 B

1234567891011121314151617181920212223242526272829
  1. syntax = "proto3";
  2. package com.v2ray.core.proxy.socks;
  3. option go_package = "socks";
  4. import "v2ray.com/core/common/net/address.proto";
  5. import "v2ray.com/core/common/protocol/server_spec.proto";
  6. message Account {
  7. string username = 1;
  8. string password = 2;
  9. }
  10. enum AuthType {
  11. NO_AUTH = 0;
  12. PASSWORD = 1;
  13. }
  14. message ServerConfig {
  15. AuthType auth_type = 1;
  16. map<string, string> accounts = 2;
  17. com.v2ray.core.common.net.AddressPB address = 3;
  18. bool udp_enabled = 4;
  19. uint32 timeout = 5;
  20. }
  21. message ClientConfig {
  22. repeated com.v2ray.core.common.protocol.ServerSpecPB server = 1;
  23. }