Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
99071601
Commit
99071601
authored
Jun 03, 2025
by
nanahira
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d4fdd8b5
Pipeline
#37142
passed with stages
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/router.rs
src/router.rs
+3
-2
No files found.
src/router.rs
View file @
99071601
...
...
@@ -125,8 +125,9 @@ impl<'a> Router<'a> {
Self
::
run_up_script
(
&
config
)
?
;
let
mut
endpoints_set
=
HashSet
::
new
();
if
let
Some
(
addr
)
=
*
endpoint
.read
()
.unwrap
()
{
endpoints_set
.insert
(
addr
);
let
ep_guard
=
endpoint
.read
()
.unwrap
();
if
let
Some
(
addr
)
=
ep_guard
.as_ref
()
{
endpoints_set
.insert
(
*
addr
);
// SockAddr 实现了 Copy
}
let
endpoints
=
Arc
::
new
(
RwLock
::
new
(
endpoints_set
));
let
last_seen
=
Arc
::
new
(
RwLock
::
new
(
Instant
::
now
()));
...
...
nanahira
@nanahira
mentioned in commit
e09df344
·
Jun 03, 2025
mentioned in commit
e09df344
mentioned in commit e09df3440bd60e786fd13d33fe3cda4f7ceb2e14
Toggle commit list
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