1
0
Fork 0
forked from External/ergo

fix non-linux builds

This commit is contained in:
Shivaram Lingamneni 2020-09-29 15:22:12 -04:00
parent b876c296eb
commit 475d7ba418
3 changed files with 45 additions and 24 deletions

14
irc/utils/net_nonlinux.go Normal file
View file

@ -0,0 +1,14 @@
// +build !linux
package utils
import (
"fmt"
"net"
)
// Output a description of a connection that can identify it to other systems
// administration tools.
func DescribeConn(conn net.Conn) (description string) {
return fmt.Sprintf("%s <-> %s", conn.LocalAddr().String(), conn.RemoteAddr().String())
}