github.com/moqsien/xraycore@v1.8.5/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 int32 keep_alive = 4; 14 repeated string allowed_ips = 5; 15 } 16 17 message DeviceConfig { 18 string secret_key = 1; 19 repeated string endpoint = 2; 20 repeated PeerConfig peers = 3; 21 int32 mtu = 4; 22 int32 num_workers = 5; 23 bytes reserved = 6; 24 }