diff --git a/internal/api/api.go b/internal/api/api.go index cb12ec6b..3fbf2044 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -32,7 +32,7 @@ func Init() { } // default config - cfg.Mod.Listen = "0.0.0.0:1984" + cfg.Mod.Listen = ":1984" // load config from YAML app.LoadConfig(&cfg) diff --git a/internal/rtsp/rtsp.go b/internal/rtsp/rtsp.go index 8f7d278f..bb274d20 100644 --- a/internal/rtsp/rtsp.go +++ b/internal/rtsp/rtsp.go @@ -26,7 +26,7 @@ func Init() { } // default config - conf.Mod.Listen = "0.0.0.0:8554" + conf.Mod.Listen = ":8554" conf.Mod.DefaultQuery = "video&audio" app.LoadConfig(&conf) diff --git a/internal/srtp/srtp.go b/internal/srtp/srtp.go index aa946f07..2cf7b6e7 100644 --- a/internal/srtp/srtp.go +++ b/internal/srtp/srtp.go @@ -13,7 +13,7 @@ func Init() { } // default config - cfg.Mod.Listen = "0.0.0.0:8443" + cfg.Mod.Listen = ":8443" // load config from YAML app.LoadConfig(&cfg) diff --git a/internal/webrtc/README.md b/internal/webrtc/README.md index 3511d602..8c26fff9 100644 --- a/internal/webrtc/README.md +++ b/internal/webrtc/README.md @@ -1,16 +1,13 @@ ## Config -- supported networks: IPv4 (default), IPv6, both - supported TCP: fixed port (default), disabled - supported UDP: random port (default), fixed port -| Config examples | IPv4 | IPv6 | TCP | UDP | -|------------------------------|------|------|-------|--------| -| `listen: "0.0.0.0:8555/tcp"` | yes | no | fixed | random | -| `listen: "0.0.0.0:8555/udp"` | yes | no | no | fixed | -| `listen: "[::]:8555/tcp"` | no | yes | fixed | random | -| `listen: ":8555"` | yes | yes | fixed | fixed | -| `listen: ""` | yes | yes | no | random | +| Config examples | TCP | UDP | +|-----------------------|-------|--------| +| `listen: ":8555/tcp"` | fixed | random | +| `listen: ":8555"` | fixed | fixed | +| `listen: ""` | no | random | ## Userful links diff --git a/internal/webrtc/webrtc.go b/internal/webrtc/webrtc.go index a54326bb..621eccd4 100644 --- a/internal/webrtc/webrtc.go +++ b/internal/webrtc/webrtc.go @@ -23,7 +23,7 @@ func Init() { } `yaml:"webrtc"` } - cfg.Mod.Listen = "0.0.0.0:8555/tcp" + cfg.Mod.Listen = ":8555/tcp" cfg.Mod.IceServers = []pion.ICEServer{ {URLs: []string{"stun:stun.l.google.com:19302"}}, } diff --git a/pkg/mdns/client.go b/pkg/mdns/client.go index 89673ce9..a9ea0f1a 100644 --- a/pkg/mdns/client.go +++ b/pkg/mdns/client.go @@ -219,7 +219,7 @@ func (b *Browser) ListenMulticastUDP() error { }, } - b.Recv, err = lc2.ListenPacket(ctx, "udp4", "0.0.0.0:5353") + b.Recv, err = lc2.ListenPacket(ctx, "udp4", ":5353") return err }