diff --git a/lib/upnp/upnp.go b/lib/upnp/upnp.go index 98cca31d0..34e1b4d37 100644 --- a/lib/upnp/upnp.go +++ b/lib/upnp/upnp.go @@ -150,7 +150,7 @@ USER-AGENT: syncthing/1.0 ` searchStr := fmt.Sprintf(tpl, deviceType, timeout/time.Second) - search := []byte(strings.Replace(searchStr, "\n", "\r\n", -1)) + search := []byte(strings.Replace(searchStr, "\n", "\r\n", -1) + "\r\n") l.Debugln("Starting discovery of device type", deviceType, "on", intf.Name)