Fix onvif discovery close port

This commit is contained in:
Alexey Khit
2023-06-29 20:29:35 +03:00
parent e4c7ffd1b4
commit 7bd42eb55f
+2
View File
@@ -30,6 +30,8 @@ func DiscoveryStreamingURLs() ([]string, error) {
return nil, err
}
defer conn.Close()
// https://www.onvif.org/wp-content/uploads/2016/12/ONVIF_Feature_Discovery_Specification_16.07.pdf
// 5.3 Discovery Procedure:
msg := `<?xml version="1.0" ?>