Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool mode and tcpdump tool #37

Merged
merged 3 commits into from
May 27, 2022
Merged

Add tool mode and tcpdump tool #37

merged 3 commits into from
May 27, 2022

Conversation

zackliu
Copy link
Member

@zackliu zackliu commented May 27, 2022

@zackliu zackliu requested a review from ArchangelSDY May 27, 2022 04:54
pkg/base/models.go Outdated Show resolved Hide resolved
return fmt.Sprintf(" and %s", s)
}

func ParseIPAndPort(s string) (ip string, port string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the net.SplitHostPort work for you?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried. That makes ipv6 available, but you have to add more parameters to assign port respectively. I'd prefer to make the parameter easy here.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. Good enough for now. We can figure it out later how to make IPv6 work (we're going to need this soon :)

pkg/tools/tool.go Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
pkg/tools/tcpdump/tcpdump.go Outdated Show resolved Hide resolved
@ArchangelSDY ArchangelSDY merged commit 69b633f into Azure:main May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants