1
0
mirror of https://github.com/zrepl/zrepl.git synced 2025-01-06 06:18:52 +01:00
zrepl/util/tcpsock/tcpsock_freebind_unsupported.go
Juergen Hoetzel d35e2400b2 transport/{TCP,TLS}: optional IP_FREEBIND / IP_BINDANY bind socketops
Allows to bind to an address even if it is not actually (yet or ever)
configured. Fixes 

Rationale:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#whatdoesthismeanformeadeveloper
2020-01-04 17:21:48 +01:00

13 lines
233 B
Go

// +build !linux,!freebsd
package tcpsock
import (
"fmt"
"syscall"
)
func freeBind(network, address string, c syscall.RawConn) error {
return fmt.Errorf("IP_FREEBIND equivalent functionality not supported on this platform")
}