Skip to content

Commit

Permalink
docs: tweak hint messages
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Sep 17, 2024
1 parent 332c16f commit 8304aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/provider/happy_eyeballs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
const HappyEyeballsAlternativeDelay = time.Second / 2

// Hint1111BlocakageText is the explanation of why we want the parallel detection algorithm.
const Hint1111BlocakageText string = "You are using an IPv4 provider that connects to 1.1.1.1 to obtain your public IPv4 address, but it is not uncommon for your ISPs or routers to block or intercept 1.1.1.1. To work around the blockage, the updater may connect to 1.0.0.1 if 1.1.1.1 does not immediately respond. Whichever returns first will be used in future IP detection." //nolint:lll
const Hint1111BlocakageText string = "Your IPv4 provider is using 1.1.1.1 to get your public IP. Sometimes, your ISP or router might block this. If that happens, we'll try 1.0.0.1 instead. Whichever works first will be used from then on." //nolint:lll

// Hint1111Blockage prints out a message that explains the parallel connection to 1.0.0.1.
func Hint1111Blockage(ppfmt pp.PP) { ppfmt.Hintf(pp.Hint1111Blockage, "%s", Hint1111BlocakageText) }
Expand Down
4 changes: 2 additions & 2 deletions internal/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func detectIP(ctx context.Context, ppfmt pp.PP, c *config.Config, ipNet ipnet.Ty
switch ipNet {
case ipnet.IP6:
ppfmt.Hintf(getHintIDForDetection(ipNet),
"If you are using Docker or Kubernetes, IPv6 often requires additional steps to set up; read more at %s. "+
"If your network does not support IPv6, you can disable it with IP6_PROVIDER=none",
"If you are using Docker or Kubernetes, IPv6 might need extra setup. Read more at %s. "+
"If your network doesn't support IPv6, you can turn it off by setting IP6_PROVIDER=none",
pp.ManualURL)

case ipnet.IP4:
Expand Down

0 comments on commit 8304aaf

Please sign in to comment.