Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add easy NAT integration tests part 2#13312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 2 commits intomainfromdean/easy-nat-int
May 24, 2024

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedMay 20, 2024
edited
Loading

Closes#13043
Closes#13193

Comment on lines 267 to 271
func StartClientDERP(t *testing.T, logger slog.Logger, serverURL *url.URL, derpMap *tailcfg.DERPMap, clientNumber int, myID, peerID uuid.UUID) *tailnet.Conn {
listenPort := uint16(client1Port)
if clientNumber == 2 {
listenPort = client2Port
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

clientNumber feels pretty ambiguous. I think something liketype ClientRole int would be clearer. From a quick reading it's hard to tell which is which.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Refactored into aClient struct that contains all the details that gets passed around instead. The client processes still use a "number" so they can select the correct struct as "me", but it's a const now.

@deansheatherdeansheather merged commite5bb0a7 intomainMay 24, 2024
@deansheatherdeansheather deleted the dean/easy-nat-int branchMay 24, 2024 06:32
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 24, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@coadlercoadlercoadler approved these changes

Assignees

@deansheatherdeansheather

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add STUN to network topology test suite Add Topology Test for Easy NAT <-> Easy NAT
2 participants
@deansheather@coadler

[8]ページ先頭

©2009-2025 Movatter.jp