This commit is contained in:
anlicheng 2026-04-15 20:38:04 +08:00
parent 5bc5b5ebe3
commit 40c0f92735
2 changed files with 19 additions and 8 deletions

View File

@ -2,6 +2,7 @@
rm -rf tmp
mkdir tmp
cp proto/sdlan.proto tmp/sdlan_pb.proto
cp proto/tun.proto tmp/tun_pb.proto

View File

@ -1,19 +1,29 @@
syntax = "proto3";
//
// App发送给NE的事件
message AppRequest {
message NEMessage {
// ip改变映射变化,
message ExitNodeIpChanged {
message ChangeExitNodeRequest {
//
string ip = 1;
}
oneof message {
ExitNodeIpChanged exit_node_ip_changed = 1;
oneof command {
ChangeExitNodeRequest change_exit_node = 1;
}
}
message NEReply {
message TunnelResponse {
int32 code = 1;
string message = 2;
}
// Tunnel产生的事件
message TunnelEvent {
string id = 1;
uint64 timestamp_ms = 2;
int32 code = 3;
string message = 4;
}