feat: 修复启动bash路径、将丢失连接时的视频稍微不堆积
This commit is contained in:
1 parent
f443934ee4
commit
40cd68db3d
8 files changed
+93
-6
No files matched your search
@@ -113,11 +113,17 @@ static int kcp_hub_peer_is_telemetry(const char *peer_id) {
|
||||
return kcp_hub_peer_id_has_suffix(peer_id, "-telemetry");
|
||||
}
|
||||
|
||||
static int kcp_hub_peer_is_video_receiver(const char *peer_id) {
|
||||
return peer_id != NULL && strcmp(peer_id, "peer-a-video") == 0;
|
||||
}
|
||||
|
||||
static int kcp_hub_peer_uses_server_lease(const char *peer_id) {
|
||||
if (peer_id == NULL || peer_id[0] == '\0') {
|
||||
return 0;
|
||||
}
|
||||
return kcp_hub_peer_id_has_suffix(peer_id, "-ctrl") || kcp_hub_peer_is_telemetry(peer_id);
|
||||
return kcp_hub_peer_id_has_suffix(peer_id, "-ctrl")
|
||||
|| kcp_hub_peer_is_telemetry(peer_id)
|
||||
|| kcp_hub_peer_is_video_receiver(peer_id);
|
||||
}
|
||||
|
||||
static const char *kcp_hub_peer_node_id(const char *peer_id) {
|
||||
|
||||
Reference in new issue
Block a user