mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-07 10:14:35 +00:00
add feature flag to ospf route
This commit is contained in:
@@ -53,6 +53,7 @@ message Route {
|
||||
common.StunInfo stun_info = 7;
|
||||
string inst_id = 8;
|
||||
string version = 9;
|
||||
common.PeerFeatureFlag feature_flag = 10;
|
||||
}
|
||||
|
||||
message NodeInfo {
|
||||
@@ -65,6 +66,7 @@ message NodeInfo {
|
||||
repeated string listeners = 7;
|
||||
string config = 8;
|
||||
string version = 9;
|
||||
common.PeerFeatureFlag feature_flag = 10;
|
||||
}
|
||||
|
||||
message ShowNodeInfoRequest {}
|
||||
|
||||
@@ -90,3 +90,8 @@ message StunInfo {
|
||||
uint32 min_port = 5;
|
||||
uint32 max_port = 6;
|
||||
}
|
||||
|
||||
message PeerFeatureFlag {
|
||||
bool is_public_server = 1;
|
||||
bool no_relay_data = 2;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ message RoutePeerInfo {
|
||||
uint32 version = 9;
|
||||
|
||||
string easytier_version = 10;
|
||||
common.PeerFeatureFlag feature_flag = 11;
|
||||
}
|
||||
|
||||
message PeerIdVersion {
|
||||
|
||||
@@ -84,6 +84,10 @@ impl ServiceRegistry {
|
||||
self.table.remove(&key).map(|_| ())
|
||||
}
|
||||
|
||||
pub fn unregister_by_domain(&self, domain_name: &str) {
|
||||
self.table.retain(|k, _| k.domain_name != domain_name);
|
||||
}
|
||||
|
||||
pub async fn call_method(
|
||||
&self,
|
||||
rpc_desc: RpcDescriptor,
|
||||
|
||||
Reference in New Issue
Block a user