mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
go.net/ipv4: make supportsNewIPInput const
R=dave CC=golang-dev https://golang.org/cl/6822083
This commit is contained in:
@@ -120,7 +120,7 @@ func (h *Header) String() string {
|
||||
|
||||
// Please refer to the online manual; IP(4) on Darwin, FreeBSD and
|
||||
// OpenBSD. IP(7) on Linux.
|
||||
var supportsNewIPInput = runtime.GOOS == "linux" || runtime.GOOS == "openbsd"
|
||||
const supportsNewIPInput = runtime.GOOS == "linux" || runtime.GOOS == "openbsd"
|
||||
|
||||
// Marshal returns the binary encoding of the IPv4 header h.
|
||||
func (h *Header) Marshal() ([]byte, error) {
|
||||
|
||||
Reference in New Issue
Block a user