Skip to content

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

@fhs

Description

@fhs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.OS-Plan9

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions