config.proto 800 B

12345678910111213141516171819202122232425262728293031323334
  1. syntax = "proto3";
  2. package xray.proxy.wireguard;
  3. option csharp_namespace = "Xray.Proxy.WireGuard";
  4. option go_package = "github.com/xtls/xray-core/proxy/wireguard";
  5. option java_package = "com.xray.proxy.wireguard";
  6. option java_multiple_files = true;
  7. message PeerConfig {
  8. string public_key = 1;
  9. string pre_shared_key = 2;
  10. string endpoint = 3;
  11. uint32 keep_alive = 4;
  12. repeated string allowed_ips = 5;
  13. }
  14. message DeviceConfig {
  15. enum DomainStrategy {
  16. FORCE_IP = 0;
  17. FORCE_IP4 = 1;
  18. FORCE_IP6 = 2;
  19. FORCE_IP46 = 3;
  20. FORCE_IP64 = 4;
  21. }
  22. string secret_key = 1;
  23. repeated string endpoint = 2;
  24. repeated PeerConfig peers = 3;
  25. int32 mtu = 4;
  26. int32 num_workers = 5;
  27. bytes reserved = 6;
  28. DomainStrategy domain_strategy = 7;
  29. bool is_client = 8;
  30. bool no_kernel_tun = 9;
  31. }