mirror of
https://github.com/golang/go
synced 2024-11-21 18:24:46 -07:00
syslog: use local network for tests
R=r CC=golang-dev https://golang.org/cl/1724042
This commit is contained in:
parent
fc090a3a54
commit
226b5fc666
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user