From f1511952f8101039c6574a9dd80d978fe7c7a32e Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 6 Jun 2021 12:40:49 +0200 Subject: [PATCH] examples: support ipv6 --- examples/client-publish-options/main.go | 2 +- examples/client-publish-pause/main.go | 2 +- examples/client-publish/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) }