huin / goupnp

UPnP client library for Go (#golang)
BSD 2-Clause "Simplified" License
430 stars 86 forks source link

Error discovering service with UPnP: creating HTTPU client for address 169.254.220.204: listen udp 169.254.220.204:0: bind: The requested address is not valid in its context. #37

Closed fanhai closed 3 years ago

fanhai commented 3 years ago

当网络不启用时 net.FlagUp == 0 Error discovering service with UPnP: creating HTTPU client for address 169.254.220.204: listen udp 169.254.220.204:0: bind: The requested address is not valid in its context.

c, err := httpu.NewHTTPUClientAddr(addr) if err != nil { return nil, nil, ctxErrorf(err, "creating HTTPU client for address %s", addr) }