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

[BUG] ipv6 listen error on v4.10.2 #2729

Open
baiguidong opened this issue Aug 19, 2024 · 1 comment
Open

[BUG] ipv6 listen error on v4.10.2 #2729

baiguidong opened this issue Aug 19, 2024 · 1 comment

Comments

@baiguidong
Copy link

Describe the bug

  1. What are you trying to do?
    Running in IPv6 environment
  2. What did you expect to happen?
  3. What happens instead?
    panic: address [[::1]]:45375: missing port in address
    img_v3_02dt_9631af0a-6b4f-4aa5-97f3-1faa9bc0e0dg

How to reproduce the bug

img_v3_02dt_84011ec6-b90f-4682-b8b7-c2f7c09fff1g
img_v3_02dt_4571527c-37dc-408d-a142-fb853dde244g
img_v3_02dt_20a40078-3575-4926-9a49-1f8862056a4g

If possible, please include a minimal code snippet here.

Environment

Go Version: please paste go version output here

please paste `go env` output here
@baiguidong baiguidong changed the title [BUG] ipv6 listen error [BUG] ipv6 listen error on v4.10.2 Aug 19, 2024
@baiguidong
Copy link
Author

func main() {
service := web.NewService(
web.Name("go.micro.api.conf"),
)
if err := service.Init(); err != nil {
panic(err)
}
service.Options().Service.Init(micro.Transport(grpc.NewTransport()))
client := pconfig.NewConfigService("go.micro.srv.config", service.Options().Service.Client())

config.Init(client)
router := Router()
service.Handle("/", router)

if err := service.Run(); err != nil {
	panic(err)
}

}

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

No branches or pull requests

1 participant