Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
619fba58
Unverified
Commit
619fba58
authored
Apr 26, 2021
by
RustDesk
Committed by
GitHub
Apr 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recreate udp socket
parent
9103fd33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
rendezvous_mediator.rs
src/rendezvous_mediator.rs
+5
-1
No files found.
src/rendezvous_mediator.rs
View file @
619fba58
...
@@ -211,7 +211,11 @@ impl RendezvousMediator {
...
@@ -211,7 +211,11 @@ impl RendezvousMediator {
Config
::
update_latency
(
&
host
,
-
1
);
Config
::
update_latency
(
&
host
,
-
1
);
old_latency
=
0
;
old_latency
=
0
;
if
now
.duration_since
(
last_dns_check
)
.map
(|
d
|
d
.as_millis
()
as
i64
)
.unwrap_or
(
0
)
>
DNS_INTERVAL
{
if
now
.duration_since
(
last_dns_check
)
.map
(|
d
|
d
.as_millis
()
as
i64
)
.unwrap_or
(
0
)
>
DNS_INTERVAL
{
allow_err!
(
rz
.dns_check
());
if
let
Ok
(
_
)
=
rz
.dns_check
()
{
// in some case of network reconnect (dial IP network),
// old UDP socket not work any more after network recover
socket
=
FramedSocket
::
new
(
Config
::
get_any_listen_addr
())
.await
?
;
}
last_dns_check
=
now
;
last_dns_check
=
now
;
}
}
}
else
if
fails
>
MAX_FAILS1
{
}
else
if
fails
>
MAX_FAILS1
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment