diff options
author | Milan Lenco <milan.lenco@pantheon.tech> | 2021-01-21 13:53:33 +0100 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-02-13 18:54:31 +0900 |
commit | 3339f97722e35d5ff351ef500de1e61344cbd33d (patch) | |
tree | 600f85f5a0cd1440670c62c3fd881a3a6efb0645 /pkg/server/util.go | |
parent | c89a32ea7bbed1780b93431e2f94482df462206e (diff) |
feat: add option to bind listener to a (VRF) device
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'pkg/server/util.go')
-rw-r--r-- | pkg/server/util.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/server/util.go b/pkg/server/util.go index c774c6dd..e4abbed0 100644 --- a/pkg/server/util.go +++ b/pkg/server/util.go @@ -65,14 +65,6 @@ func decodeAdministrativeCommunication(data []byte) (string, []byte) { return string(data[1 : communicationLen+1]), data[communicationLen+1:] } -func extractFamilyFromTCPListener(l *net.TCPListener) int { - family := syscall.AF_INET - if strings.Contains(l.Addr().String(), "[") { - family = syscall.AF_INET6 - } - return family -} - func extractFamilyFromTCPConn(conn *net.TCPConn) int { family := syscall.AF_INET if strings.Contains(conn.RemoteAddr().String(), "[") { |