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 #238 Rationale: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/#whatdoesthismeanformeadeveloper
This commit is contained in:
committed by
Christian Schwarz
parent
47ed599db7
commit
d35e2400b2
@@ -0,0 +1,12 @@
|
||||
// +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")
|
||||
}
|
||||
Reference in New Issue
Block a user