mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 18:24:36 +00:00
Allows to modify Easytier's mapped listener at runtime via RPC (#1107)
* Add proto definition * Implement and register the corresponding rpc service * Parse command line parameters and call remote rpc service --------- Co-authored-by: Sijie.Sun <sunsijie@buaa.edu.cn>
This commit is contained in:
@@ -172,6 +172,31 @@ service ConnectorManageRpc {
|
||||
rpc ManageConnector(ManageConnectorRequest) returns (ManageConnectorResponse);
|
||||
}
|
||||
|
||||
message MappedListener {
|
||||
common.Url url = 1;
|
||||
}
|
||||
|
||||
message ListMappedListenerRequest {}
|
||||
|
||||
message ListMappedListenerResponse { repeated MappedListener mappedlisteners = 1; }
|
||||
|
||||
enum MappedListenerManageAction {
|
||||
MAPPED_LISTENER_ADD = 0;
|
||||
MAPPED_LISTENER_REMOVE = 1;
|
||||
}
|
||||
|
||||
message ManageMappedListenerRequest {
|
||||
MappedListenerManageAction action = 1;
|
||||
common.Url url = 2;
|
||||
}
|
||||
|
||||
message ManageMappedListenerResponse {}
|
||||
|
||||
service MappedListenerManageRpc {
|
||||
rpc ListMappedListener(ListMappedListenerRequest) returns (ListMappedListenerResponse);
|
||||
rpc ManageMappedListener(ManageMappedListenerRequest) returns (ManageMappedListenerResponse);
|
||||
}
|
||||
|
||||
message VpnPortalInfo {
|
||||
string vpn_type = 1;
|
||||
string client_config = 2;
|
||||
|
||||
Reference in New Issue
Block a user