mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 19:42:20 +00:00
6 UDP ports are enough (but does not work)
This commit is contained in:
parent
ae7dcf4221
commit
c67a4adf83
@ -16,5 +16,5 @@ RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing libs
|
|||||||
COPY --from=build_base /code/out/ghostream /app/ghostream
|
COPY --from=build_base /code/out/ghostream /app/ghostream
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# 8080 for Web and Websocket, 2112 for prometheus monitoring and 9710 for SRT
|
# 8080 for Web and Websocket, 2112 for prometheus monitoring and 9710 for SRT
|
||||||
EXPOSE 8080 2112 9710
|
EXPOSE 8080 2112 9710 10000-10005/udp
|
||||||
CMD ["/app/ghostream"]
|
CMD ["/app/ghostream"]
|
||||||
|
@ -46,7 +46,7 @@ func newPeerHandler(remoteSdp webrtc.SessionDescription) webrtc.SessionDescripti
|
|||||||
|
|
||||||
// Create a new PeerConnection
|
// Create a new PeerConnection
|
||||||
settingsEngine := webrtc.SettingEngine{}
|
settingsEngine := webrtc.SettingEngine{}
|
||||||
if err := settingsEngine.SetEphemeralUDPPortRange(10000, 11000); err != nil {
|
if err := settingsEngine.SetEphemeralUDPPortRange(10000, 10005); err != nil {
|
||||||
log.Println("Failed to set min/max UDP ports", err)
|
log.Println("Failed to set min/max UDP ports", err)
|
||||||
return webrtc.SessionDescription{}
|
return webrtc.SessionDescription{}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user