config.proto 611 B

123456789101112131415161718192021222324
  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. int32 keep_alive = 4;
  12. repeated string allowed_ips = 5;
  13. }
  14. message DeviceConfig {
  15. string secret_key = 1;
  16. repeated string endpoint = 2;
  17. repeated PeerConfig peers = 3;
  18. int32 mtu = 4;
  19. int32 num_workers = 5;
  20. bytes reserved = 6;
  21. }