Skip to content

Conversation

@isaacharrisholt
Copy link
Contributor

@isaacharrisholt isaacharrisholt commented Jun 29, 2025

Closes #3

@rover-app
Copy link

rover-app bot commented Jun 29, 2025

Hark!

We're scanning your PR for issues. Stand by for comments.

Beep boop,
Rover 🤖

@isaacharrisholt isaacharrisholt mentioned this pull request Jun 29, 2025
Copy link

@rover-app rover-app bot left a comment

Choose a reason for hiding this comment

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

Rover alert scan for Pevensie

Scanned on Jun 29th 2025, 12:34PM for commit 3fb0827333ceb0c1675a3a5e3b757f8ce58ab974

Rover found 1 risk.
1 medium.

One medium severity issue found.

To request another review, comment @rover-app review in the PR discussion.

Rover Support

Rover has scanned for issues in performance, security, reliability that might be introduced by this PR, in the context of your upstream and downstream services and dependencies.

What happens next

You can re-request a review by commenting @rover-app review on the PR.
Rover will review the PR again, and close any alerts that you've fixed.

I want to follow up with Rover

PR chat is coming

Soon, you'll be able to talk to Rover about issues in your PR, in your PR.
Right now, we only support code chat on your `main`/`master` (default) branch:
head to the graph page on the Rover platform
to chat with your code.

If Rover isn't doing much

It could be that Rover doesn't support your language or framework yet, or perhaps you've found an area we can improve in!
We'd love to get your feedback to help improve Rover, so if you're not happy with its output please get in touch by clicking here.

I love/hate the alerts Rover is generating

Regardless, we'd love to hear it!
We're working hard to make Rover better,
so please get in touch with us
with your PR number and alert comment.

I'd like to request a feature or improvement

You know the score: get in touch!
We love to have feature requests from our users to work on.

Rover actions

Re-review

Comment @rover-app review on the PR to request another review.

Suspend Rover scanning

To stop Rover from scanning PRs on your org (Pevensie), head to your organization settings or suspend the GitHub app installation on this GitHub account.

Comment on lines 231 to 233
mug.new(config.host, config.port)
|> mug.ip_version_preference(mug.Ipv6Preferred)
|> mug.timeout(timeout)
Copy link

Choose a reason for hiding this comment

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

The code ignores the user-configured `ip_version_preference` setting and always uses `mug.Ipv6Preferred` when establishing connections.

Severity medium

Description The `create_socket` function uses a hardcoded IPv6 preference setting (`mug.Ipv6Preferred`) instead of using the `ip_version_preference` value from the provided configuration. This effectively renders the newly added configuration option useless, as any user-specified IP version preference will be ignored during actual connection establishment.

Suggested fix

Suggested change
mug.new(config.host, config.port)
|> mug.ip_version_preference(mug.Ipv6Preferred)
|> mug.timeout(timeout)
mug.new(config.host, config.port)
|> mug.ip_version_preference(config.ip_version_preference)
|> mug.timeout(timeout)

@isaacharrisholt isaacharrisholt merged commit 224092f into main Jun 29, 2025
6 checks passed
@isaacharrisholt isaacharrisholt deleted the ipv6 branch June 29, 2025 12:37
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.

Support IPv6 Connection

2 participants