Skip to content

Conversation

@AhmadMujahid2k
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Oct 9, 2023

BE-2399 Support `-6` (ipv6) flag in `myip` command

#119

It may be enough to just try and make a request to https://v6.ipinfo.io but not entirely sure.

If I do curl https://v6.ipinfo.io it works on a cloud server that has a v6 IP assigned to it, for example. Need to replicate what curl is doing if it's doing anything different at the point of TCP socket initialization.

--token <tok>, -t <tok>
use <tok> as API token.
--ipv6, -6
use IPv6 address.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
use IPv6 address.
get IPv6 address.

var fJSON bool
var fCSV bool
var fYAML bool
var fIPv6 bool
Copy link
Contributor

Choose a reason for hiding this comment

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

fV6

@UmanShahzad
Copy link
Contributor

Will wait for Go SDK one, then @AhmadMujahid2k we need to update this repo to use the new version of that SDK.

Copy link
Contributor

@UmanShahzad UmanShahzad left a comment

Choose a reason for hiding this comment

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

Need to update go.mod and run go mod vendor otherwise this wont work

@UmanShahzad UmanShahzad merged commit 9cc32a3 into master Oct 10, 2023
@UmanShahzad UmanShahzad deleted the ahmad/BE-2399 branch October 10, 2023 12:48
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.

3 participants