config.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. syntax = "proto3";
  2. package v2ray.core.proxy.wireguard;
  3. option csharp_namespace = "V2Ray.Core.Proxy.WireGuard";
  4. option go_package = "github.com/v2fly/v2ray-core/v4/proxy/wireguard";
  5. option java_package = "com.v2ray.core.proxy.wireguard";
  6. option java_multiple_files = true;
  7. import "common/protocol/server_spec.proto";
  8. import "common/protoext/extensions.proto";
  9. import "common/net/address.proto";
  10. import "common/net/network.proto";
  11. message Config {
  12. v2ray.core.common.protocol.ServerEndpoint server = 1;
  13. v2ray.core.common.net.Network network = 2;
  14. repeated string localAddress = 3;
  15. string private_key = 4;
  16. string peer_public_key = 5;
  17. string pre_shared_key = 6;
  18. uint32 mtu = 7;
  19. uint32 user_level = 8;
  20. }
  21. message SimplifiedConfig {
  22. option (v2ray.core.common.protoext.message_opt).type = "outbound";
  23. option (v2ray.core.common.protoext.message_opt).short_name = "wireguard";
  24. v2ray.core.common.net.IPOrDomain address = 1;
  25. uint32 port = 2;
  26. v2ray.core.common.net.Network network = 3;
  27. repeated string localAddress = 4;
  28. string private_key = 5;
  29. string peer_public_key = 6;
  30. string pre_shared_key = 7;
  31. uint32 mtu = 8;
  32. uint32 user_level = 9;
  33. }