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

net: tcp4 Listener on 0.0.0.0 has IPv6 address :: on Plan 9 #40045

Closed
fhs opened this issue Jul 4, 2020 · 1 comment
Closed

net: tcp4 Listener on 0.0.0.0 has IPv6 address :: on Plan 9 #40045

fhs opened this issue Jul 4, 2020 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Plan9

Comments

@fhs
Copy link
Contributor

fhs commented Jul 4, 2020

What version of Go are you using (go version)?

$ go version
go version devel +master Fri Jul 3 01:11:20 EDT 2020 plan9/386

What did you do?

Run:

package main

import (
	"fmt"
	"net"
)

func main() {
	l, err := net.Listen("tcp4", "0.0.0.0:1234")
	if err != nil {
		panic(err)
	}
	defer l.Close()
	fmt.Printf("Listen Addr: %v\n", l.Addr())
}

What did you expect to see?

As seen on Linux:

Listen Addr: 0.0.0.0:1234

What did you see instead?

Listen Addr: [::]:1234

The same issue exists for ListenPacket on udp4.

@gopherbot add labels OS-Plan9, NeedsFix

@gopherbot gopherbot added NeedsFix The path to resolution is known, but the work has not been done. OS-Plan9 labels Jul 4, 2020
@gopherbot
Copy link

Change https://golang.org/cl/240918 mentions this issue: net: correct address when listening on IPv4zero tcp4/udp4 on Plan 9

@golang golang locked and limited conversation to collaborators Jul 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Plan9
Projects
None yet
Development

No branches or pull requests

2 participants