1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:24:44 -07:00

syslog: use local network for tests

R=r
CC=golang-dev
https://golang.org/cl/1724042
This commit is contained in:
Russ Cox 2010-06-21 13:48:49 -07:00
parent fc090a3a54
commit 226b5fc666

View File

@ -26,7 +26,7 @@ func runSyslog(c net.PacketConn, done chan<- string) {
} }
func startServer(done chan<- string) { func startServer(done chan<- string) {
c, e := net.ListenPacket("udp", ":0") c, e := net.ListenPacket("udp", "127.0.0.1:0")
if e != nil { if e != nil {
log.Exitf("net.ListenPacket failed udp :0 %v", e) log.Exitf("net.ListenPacket failed udp :0 %v", e)
} }