wgcl/proto/vpn.proto
2025-11-20 11:47:00 +08:00

19 lines
407 B
Protocol Buffer

edition = "2024";
package protovpn;
option go_package = "git.jasinco.work/wgcl/proto/out";
message PeerStatus {
string pubkey = 1;
string ipv4 = 2;
bool enabled = 3;
string nick = 4;
int64 beacon = 5;
}
message PeerResp {
repeated PeerStatus peers = 1;
}
message PeerReq {
string name = 1 [features.field_presence = LEGACY_REQUIRED];
string ip4 = 2 [features.field_presence = EXPLICIT];
}