forked from External/ergo
fix non-linux builds
This commit is contained in:
parent
b876c296eb
commit
475d7ba418
3 changed files with 45 additions and 24 deletions
14
irc/utils/net_nonlinux.go
Normal file
14
irc/utils/net_nonlinux.go
Normal 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())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue