mirror of
https://github.com/kerberos-io/onvif.git
synced 2026-08-23 15:08:33 +00:00
Use a random ssource port in ws-discovery
This commit is contained in:
@@ -49,7 +49,7 @@ func SendProbe(interfaceName string, scopes, types []string, namespaces map[stri
|
||||
}
|
||||
|
||||
func sendUDPMulticast(msg string, interfaceName string) []string {
|
||||
c, err := net.ListenPacket("udp4", "0.0.0.0:1024")
|
||||
c, err := net.ListenPacket("udp4", "0.0.0.0:0")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user