diff options
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(), "[") { |