lan_discovery_WOL: lan discovery test done
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
8fd4830710
commit
eda0855506
@ -64,9 +64,11 @@ impl RendezvousMediator {
|
|||||||
direct_server(server_cloned).await;
|
direct_server(server_cloned).await;
|
||||||
});
|
});
|
||||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
std::thread::spawn(move || {
|
if crate::platform::is_installed() {
|
||||||
allow_err!(lan_discovery());
|
std::thread::spawn(move || {
|
||||||
});
|
allow_err!(lan_discovery());
|
||||||
|
});
|
||||||
|
}
|
||||||
loop {
|
loop {
|
||||||
Config::reset_online();
|
Config::reset_online();
|
||||||
if Config::get_option("stop-service").is_empty() {
|
if Config::get_option("stop-service").is_empty() {
|
||||||
|
@ -532,7 +532,7 @@ class MultipleSessions: Reactor.Component {
|
|||||||
<div style="width:*" .sessions-tab #sessions-type>
|
<div style="width:*" .sessions-tab #sessions-type>
|
||||||
<span class={!type ? 'active' : 'inactive'}>{translate('Recent Sessions')}</span>
|
<span class={!type ? 'active' : 'inactive'}>{translate('Recent Sessions')}</span>
|
||||||
<span #fav class={type == "fav" ? 'active' : 'inactive'}>{translate('Favorites')}</span>
|
<span #fav class={type == "fav" ? 'active' : 'inactive'}>{translate('Favorites')}</span>
|
||||||
{<span #lan class={type == "lan" ? 'active' : 'inactive'}>{translate('Discovered')}</span>}
|
{handler.is_installed() && <span #lan class={type == "lan" ? 'active' : 'inactive'}>{translate('Discovered')}</span>}
|
||||||
<span #ab class={type == "ab" ? 'active' : 'inactive'}>{translate('Address Book')}</span>
|
<span #ab class={type == "ab" ? 'active' : 'inactive'}>{translate('Address Book')}</span>
|
||||||
</div>
|
</div>
|
||||||
{!this.hidden && <SearchBar type={type} />}
|
{!this.hidden && <SearchBar type={type} />}
|
||||||
@ -540,7 +540,7 @@ class MultipleSessions: Reactor.Component {
|
|||||||
</div>
|
</div>
|
||||||
{!this.hidden &&
|
{!this.hidden &&
|
||||||
((type == "fav" && <Favorites />) ||
|
((type == "fav" && <Favorites />) ||
|
||||||
(type == "lan" && <LanPeers />) ||
|
(type == "lan" && handler.is_installed() && <LanPeers />) ||
|
||||||
(type == "ab" && <AddressBook />) ||
|
(type == "ab" && <AddressBook />) ||
|
||||||
<SessionList sessions={handler.get_recent_sessions()} />)}
|
<SessionList sessions={handler.get_recent_sessions()} />)}
|
||||||
</div>;
|
</div>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user