diff --git a/examples/client-publish-options/main.go b/examples/client-publish-options/main.go index 78750c81..28847361 100644 --- a/examples/client-publish-options/main.go +++ b/examples/client-publish-options/main.go @@ -17,7 +17,7 @@ import ( func main() { // open a listener to receive RTP/H264 frames - pc, err := net.ListenPacket("udp4", "127.0.0.1:9000") + pc, err := net.ListenPacket("udp", "localhost:9000") if err != nil { panic(err) } diff --git a/examples/client-publish-pause/main.go b/examples/client-publish-pause/main.go index f97dad21..3ac0c6e9 100644 --- a/examples/client-publish-pause/main.go +++ b/examples/client-publish-pause/main.go @@ -18,7 +18,7 @@ import ( func main() { // open a listener to receive RTP/H264 frames - pc, err := net.ListenPacket("udp4", "127.0.0.1:9000") + pc, err := net.ListenPacket("udp", "localhost:9000") if err != nil { panic(err) } diff --git a/examples/client-publish/main.go b/examples/client-publish/main.go index 503c277c..6fa7e4a9 100644 --- a/examples/client-publish/main.go +++ b/examples/client-publish/main.go @@ -15,7 +15,7 @@ import ( func main() { // open a listener to receive RTP/H264 frames - pc, err := net.ListenPacket("udp4", "127.0.0.1:9000") + pc, err := net.ListenPacket("udp", "localhost:9000") if err != nil { panic(err) }