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