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

Find and listen on all available networks #105

Merged
merged 14 commits into from
Sep 17, 2022
Merged

Conversation

marcelocantos
Copy link
Collaborator

@marcelocantos marcelocantos commented Sep 14, 2022

This was motivated by npm being unable to proxy through alpaca via npm set config http://localhost:3128 since node 17+ favours IPv6, whereas Go's net.Listen favours IPv4 when a hostname is supplied.

This PR performs a hostname lookup and detects the networks (tcp4/tcp6) for all returned IPs.

net.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
- To build multiple GOOS/GOOARCH combos: make build-archs
- Output to temp directory
- Delete output after done building
- Don't clobber alpaca binary
- Clearer output (✔ prefix for successful builds)
Makefile Outdated Show resolved Hide resolved
@marcelocantos marcelocantos marked this pull request as ready for review September 16, 2022 00:33
.github/workflows/ci.yml Show resolved Hide resolved
gogroup.go Outdated Show resolved Hide resolved
net.go Outdated Show resolved Hide resolved
samuong
samuong previously approved these changes Sep 17, 2022
Copy link
Owner

@samuong samuong left a comment

Choose a reason for hiding this comment

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

lgtm

.github/workflows/ci.yml Show resolved Hide resolved
Copy link
Owner

@samuong samuong left a comment

Choose a reason for hiding this comment

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

still lgtm, thanks @marcelocantos!

@samuong samuong linked an issue Sep 17, 2022 that may be closed by this pull request
@samuong samuong merged commit 54ebbda into samuong:master Sep 17, 2022
@samuong samuong mentioned this pull request May 28, 2024
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.

IPv6 Support
2 participants