go-upnp-igd
Minimal Go UPnP InternetGatewayDevice library. Based on Syncthing's library.
Usage
package main
import (
"log"
"time"
"github.com/emersion/go-upnp-igd"
)
func main() {
devices := igd.Discover(10 * time.Second)
for _, d := range devices {
log.Println(d)
}
}
License
MPL 2.0