mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +01:00
d35e2400b2
Allows to bind to an address even if it is not actually (yet or ever) configured. Fixes #238 Rationale: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#whatdoesthismeanformeadeveloper
13 lines
233 B
Go
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")
|
|
}
|