examples: support ipv6

This commit is contained in:
aler9
2021-06-06 12:40:49 +02:00
parent feb57da8f0
commit f1511952f8
3 changed files with 3 additions and 3 deletions

View File

@@ -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)
}

View File

@@ -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)
}

View File

@@ -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)
}