Skip to content

Commit

Permalink
Added js type annotations to proto
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Dec 10, 2020
1 parent 922862c commit f8cb6d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions protobuf/sliverpb/sliver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "commonpb/common.proto";
>>> Reserved Numbers <<<
For tunnel messages:
uint64 TunnelID = 8;
uint64 TunnelID = 8 [jstype = JS_STRING]; // JS can't represent a uint64
uint32 SessionID = 9;
For request/response messages:
Expand Down Expand Up @@ -469,7 +469,7 @@ message Backdoor {
// Tunnel - Tunnel related messages

message Tunnel {
uint64 TunnelID = 8;
uint64 TunnelID = 8 [jstype = JS_STRING];
uint32 SessionID = 9;
}

Expand All @@ -478,7 +478,7 @@ message TunnelData {
bool Closed = 2;
uint64 Sequence = 3;

uint64 TunnelID = 8;
uint64 TunnelID = 8 [jstype = JS_STRING];
uint32 SessionID = 9;
}

Expand All @@ -488,7 +488,7 @@ message ShellReq{
bool EnablePTY = 2;
uint32 Pid = 3;

uint64 TunnelID = 8; // Bind to this tunnel
uint64 TunnelID = 8 [jstype = JS_STRING]; // Bind to this tunnel
commonpb.Request Request = 9;
}

Expand All @@ -498,7 +498,7 @@ message Shell{
bool EnablePTY = 2;
uint32 Pid = 3;

uint64 TunnelID = 8;
uint64 TunnelID = 8 [jstype = JS_STRING];
commonpb.Response Response = 9;
}

Expand Down

0 comments on commit f8cb6d7

Please sign in to comment.