2014-07-08 22:20:10 +10:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Extensions of the original work are copyright (c) 2011 Miek Gieben
|
|
|
|
|
2014-07-08 01:16:42 +10:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package dns
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
)
|
|
|
|
|
2014-07-08 18:42:02 +10:00
|
|
|
// Default implementation for preparing the socket for sessions
|
|
|
|
// This actually does nothing. See udp_linux.go for an example of how to implement this.
|
|
|
|
// Make sure you edit the comment on the top of this file accordingly when adding implementations
|
2014-07-08 22:18:33 +10:00
|
|
|
func udpPatchSocketTypes(conn *net.UDPConn, ipv4, ipv6 bool) (err error) {
|
|
|
|
return nil
|
2014-07-08 01:16:42 +10:00
|
|
|
}
|